Skip to content
Sign UpLog In
Profile icon

wh0

@wh0
Repls
Community
wh0
wh0
shared a Post
2 years ago
#WEEKLY 20
this one just does it the way the prompt describes. maybe there's some clever way to do it. and this isn't about intentionally making annoying interf
#WEEKLY 20
Python
TheDrone7
TheDrone7
SCORED.2 years ago
wh0
wh0
shared a Post
2 years ago
eh it gets as far as it gets. maybe we'll get a few more by the end of the week. cheers to the math majors who get to 50 p.s., 😛 no fancy UI. eat yo
#WEEKLY 19
Python
TheDrone7
TheDrone7
SCORED.2 years ago
AmazingMech2418
AmazingMech2418
Wow! I need to check out that Miller-Rabin primality test!2 years ago
adl212
adl212
that is fast!2 years ago
wh0
wh0
shared a Post
2 years ago
I customized the run button according to the docs, so that it would first cd into a directory first, because I'm working on a monorepo with some other
wh0
wh0
I found out that upm is what runs npm init -y. upm is open source. Here's where https://github.com/replit/upm/blob/8bf7860a5ff4eb42ec9f62c9185e1d5ae647111b/internal/backends/nodejs/nodejs.go#L261 I looked a little into how upm works, and I tried making some other "specfiles" and "lockfiles" to trick upm into thinking the project was a different language without deleting and remaking the repl, but they didn't work. Incidentally, I found that in a Python 3 repl, there's a user-writable directory2 years ago
Coder100
Coder100
This initiates your project. npm init It adds basic meta (package.json) so that npm can identify and run your project. It can also be used to configure what files get run, and also what gets installed. npm init -y What is this -y flag? It sets all the package.json values to pre-configured values. No matter what you use, your filesystem should always look something like: index.js # can also be main.js, among other names folders/ # etc. package.json package-lock.json `2 years ago
CodeLongAndPros
CodeLongAndPros
Don’t run it?2 years ago
wh0
wh0
shared a Post
2 years ago
Here's a submission for this challenge: https://repl.it/talk/announcements/Weekly-Challenge-18/53405 addendum: aaaaaaaaaaaaaaaaaaaab
#WEEKLY 18
Python
wh0
wh0
shared a Post
2 years ago
That section of the docs https://docs.repl.it/repls/http-servers reads: > # Persistence and Takedown Requests > > Note that a repl's public link will
Coder100
Coder100
The public link is [replname].[username].repl.co Try deleting a repl. See if you can still visit that website ;) Anyways, to make sure your repl is fully deleted, make sure to delete all your files and code before deleting the repl.2 years ago
RohilPatel
RohilPatel
The public link is the link of the code on the frontend (the website you make) It is meant as repl won't actually clear everything. Static websites stay static, but if you build on nodejs, then it won't load. Hope this helps! If so, mark as correct!2 years ago
wh0
wh0
shared a Post
2 years ago
When you open the .co web part of a repl, it shows the logs of the program: https://grouchyluckycomputationalscience.wh0.repl.co/__logs. I would prefe
wh0
wh0
thanks for suggesting that I post it to feedback. https://repl.it/feedback/p/dont-expose-logs-publicly here's that entry2 years ago
wh0
wh0
shared a Post
2 years ago
Specifically for these public repls, is the database sort of... wide open? More specifically: Can any visitor arbitrarily read the entire database? C
Coder100
Coder100
Not at all. Quite the opposite. Only viewers who can edit your repl can even make changes to the database (the .env file is hidden for non-owners). This means terminal applications (.repl.run) will not work. The fix would be to use an HTTP server for the user to use, and process everything normally otherwise. This works because the user doesn't run the repl, and thus the .env file does not get hidden.2 years ago
wh0
wh0
shared a Post
2 years ago
I made a "repl" to try out the new database feature. It acts as a counter. I ran it a few times to increase the count. Then I opened it up in a priva
kv-intro
Node.js
Coder100
Coder100
Hello, that is because the database URL is stored inside a .env file. When opened up in a new website (https://kv-intro.wh0.repl.run), the .env file gets hidden and will be inaccessible. The only fix would be to move all this code into an HTTP server.2 years ago