Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » code-gui - Npm package allowing contents of a folder with a Terminal UI!
- ajskateboarder
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
It's not a big deal you knowhi myselfhi, also sorry ST for using storage space on the forums :<
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
{offtopic}
{/offtopic}
IK!It's not a big deal you knowhi myselfhi, also sorry ST for using storage space on the forums :<
{/offtopic}
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
bump
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
bump, i dunno
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
bump
(scream)
(scream)- WojtekAdvanced
-
Scratcher
38 posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
BUMP, WHY.
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
bump, yes that's a lot of topics getting out of nowhere
, idk why tho, but i might do something better but this will be still on production!
, idk why tho, but i might do something better but this will be still on production!- MonkeyBean2
-
Scratcher
500+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
why do scratchers have an aversion to using ui libraries
document.createElement('div') is the strangest one i've seen yet i think
document.createElement('div')
Last edited by MonkeyBean2 (March 17, 2023 10:37:02)
- MonkeyBean2
-
Scratcher
500+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
if (f.style === "emoji" && f.style === "emoji-hacker") { ...
This should never be true, as the following should always be true:
f.style === f.style && "emoji" !== "emoji-hacker"
Last edited by MonkeyBean2 (March 17, 2023 10:39:58)
- MonkeyBean2
-
Scratcher
500+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
You should make this work with npx
- bigspeedfpv
-
Scratcher
500+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
exactly…? “an aversion to using ui libraries”why do scratchers have an aversion to using ui libraries
document.createElement('div') is the strangest one i've seen yet i thinkumm that isn't exactly a UI library…document.createElement('div')
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
you know that i didn't update the code yet… -_-if (f.style === "emoji" && f.style === "emoji-hacker") { ...
This should never be true, as the following should always be true:f.style === f.style && "emoji" !== "emoji-hacker"
You should make this work with npxhmm…
import loadDir from "code-gui"; loadDir("C:/", {"style":"text"})
- ZZZDUD
-
New Scratcher
100+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
Is this thing running on a potato! It took 54.4 seconds for it to run inside the VM (Safety first ofc)
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
Is this thing running on a potato! It took 54.4 seconds for it to run inside the VM (Safety first ofc)note that i'm a regular Node.js user and not tested it in different systems.
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
this is JavaScript also don't roast someone, or i will start a argueYour code is so slow. Even this would be betterIs this thing running on a potato! It took 54.4 seconds for it to run inside the VM (Safety first ofc)note that i'm a regular Node.js user and not tested it in different systems.import os def good_tree(start_path, padding='', branch=''): if not os.path.isdir(start_path): return files = os.listdir(start_path) files.sort() for i, file in enumerate(files): path = os.path.join(start_path, file) is_last = i == len(files) - 1 if is_last: print(padding + branch + '└── ' + file) padding += ' ' branch += ' ' else: print(padding + branch + '├── ' + file) padding += '│ ' branch += '│ '

- ZZZDUD
-
New Scratcher
100+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
I am not roasting. I am just telling you a fact about your code. Sorry. Also why start argument? Likely mute or possible ban. Anyways, back on topic. I was just using Windows 9, It shouldn't run 40-75 seconds on Windows 9 if it runs 1-7 seconds on Windows 10?this is JavaScript also don't roast someone, or i will start a argueYour code is so slow. Even this would be betterIs this thing running on a potato! It took 54.4 seconds for it to run inside the VM (Safety first ofc)note that i'm a regular Node.js user and not tested it in different systems.import os def good_tree(start_path, padding='', branch=''): if not os.path.isdir(start_path): return files = os.listdir(start_path) files.sort() for i, file in enumerate(files): path = os.path.join(start_path, file) is_last = i == len(files) - 1 if is_last: print(padding + branch + '└── ' + file) padding += ' ' branch += ' ' else: print(padding + branch + '├── ' + file) padding += '│ ' branch += '│ '
- DifferentDance8
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
I am not roasting. I am just telling you a fact about your code. Sorry. Also why start argument? Likely mute or possible ban. Anyways, back on topic. I was just using Windows 9, It shouldn't run 40-75 seconds on Windows 9 if it runs 1-7 seconds on Windows 10?…how are you using Windows 9? Do you mean Windows 8.1 or something like that?
- ZZZDUD
-
New Scratcher
100+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
In the VM it says Windows 9 but it looks more like Windows 7. I don't know, Maybe it's a modded version of Windows 7?I am not roasting. I am just telling you a fact about your code. Sorry. Also why start argument? Likely mute or possible ban. Anyways, back on topic. I was just using Windows 9, It shouldn't run 40-75 seconds on Windows 9 if it runs 1-7 seconds on Windows 10?…how are you using Windows 9? Do you mean Windows 8.1 or something like that?
- WojtekGame
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
1.Also why start argument? Likely mute or possible ban. Anyways, back on topic.this is JavaScript also don't roast someone, or i will start a argueYour code is so slow. Even this would be betterIs this thing running on a potato! It took 54.4 seconds for it to run inside the VM (Safety first ofc)note that i'm a regular Node.js user and not tested it in different systems.import os def good_tree(start_path, padding='', branch=''): if not os.path.isdir(start_path): return files = os.listdir(start_path) files.sort() for i, file in enumerate(files): path = os.path.join(start_path, file) is_last = i == len(files) - 1 if is_last: print(padding + branch + '└── ' + file) padding += ' ' branch += ' ' else: print(padding + branch + '├── ' + file) padding += '│ ' branch += '│ '
2.I was just using Windows 9, It shouldn't run 40-75 seconds on Windows 9 if it runs 1-7 seconds on Windows 10?
1. this is a bad idea to say “your code is so slow”, IT'S FREAKING JAVASCRIPT!!
2.

- PPPDUD
-
Scratcher
1000+ posts
code-gui - Npm package allowing contents of a folder with a Terminal UI!
What?? I want a screenshot.In the VM it says Windows 9 but it looks more like Windows 7. I don't know, Maybe it's a modded version of Windows 7?I am not roasting. I am just telling you a fact about your code. Sorry. Also why start argument? Likely mute or possible ban. Anyways, back on topic. I was just using Windows 9, It shouldn't run 40-75 seconds on Windows 9 if it runs 1-7 seconds on Windows 10?…how are you using Windows 9? Do you mean Windows 8.1 or something like that?
- Discussion Forums
- » Advanced Topics
-
» code-gui - Npm package allowing contents of a folder with a Terminal UI!







