All
Announcements
Pinned posts
TheDrone7
KAJAM ENDS
TheDrone7
Monthly Repls - September 2021
TheDrone7
Repl Talk Rules and Guidelines [README]
katyadee
🐶Introduce yourself! 🐶
Mosrod
Guide to Asking Coding Questions
NEKRA
NEKRA shared a Repl
18 minutes ago
0
replit-nix-configuration
replit-nix-configuration
Ask
Nix (beta)
How to setup the tasks that should run only once, when the repl is loaded?
I created a simple Nix template from https://replit.com/new/nix Now I see the file called as replit.nix with next content: {pkgs}: { deps = [ pkgs.cowsay ]; } It's ok and enough while talking only about system dependencies (at least for installing languages), but when we need to do more than just specify required software, there is my question - how to do that? Yes, I checked for introduction at https://docs.replit.com/programming-ide/getting-started-nix and info about priorities (replit.nix -> shell.nix -> default.nix) But I also searched a bit for that question and found this question on StackOverflow: https://stackoverflow.com/questions/44088192/when-and-how-should-default-nix-shell-nix-and-release-nix-be-used where described such files as: default.nix derivation.nix shell.nix module.nix test.nix release.nix And provided link to example of all these files at https://github.com/Tokyo-NixOS/presentations/tree/master/2017/02/examples/binserver I though that I will find something similar to replit.nix, but no, there's nothing similar. I've tried to replace replit.nix with shell.nix(example from https://nixos.org/#asciinema-demo-cover on moment 01:00) to be able use pkgs.mkShell: { pkgs ? import {} # here we import the nixpkgs package set }: mkShell is a helper function pkgs.mkShell { that requires a name name="dev-environment"; and a list of packages buildInputs = [ pkgs.nodejs ]; bash to run when you enter the shell shellHook = '' export SOME_KEY=SoMeVaLuE alias la="ls -a" echo "Start developing..." ''; } But it works a bit strange: Dependencies (nodejs in example above) are installed and available from both Console and Shell tabs Exported environment variable is has value in the Shell tab only. For the Console tab it's empty and not even exist (checked with env | grep SOME_KEY) Alias created only after manual running nix-shell. The same behaviour for both Console and Shell tabs Command echo "Start developing..." also executed only after manual running nix-shell. How finally I have to setup the task that should be executed only once, when the repl is loaded? To which type of .nix files is replit.nix similar to? Read full post
mikeblackbelt
mikeblackbelt shared a Repl
1 hour ago
0
blooket game finder-1
blooket game finder-1from github (NOT MINE)
Share
Python
NOT MINE
for @mirzo_ulugbek aaaaaaaaaaaaa aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa aaaaaaaa hi hi hi hi hiRead full post
Korbindev
Korbindev shared a Repl
3 hours ago
0
scratch
scratch
Ask
Python
Is Linking A Domain To My Site Broken?
It says everything is connected right but when I click Link Domain it says liking for a whle then goes back to lick domain. Does anyone know a fix for this.Read full post
MananDeopurkar
MananDeopurkar shared a Repl
3 hours ago
0
4k graphics game
4k graphics game
Share
Python
Bullet kill u haha
Escape the bullet!! Press tab to start the game Controls : a to move to left, d to move to rightRead full post
NotRandomPerson
NotRandomPerson shared a Repl
5 hours ago
0
Guess The Time
Guess The TimeA simple guessing game that you can check your biological clock with (I guess)
Share
Python
Guess The Time (check your timing)
A simple small program which checks your biological clock (I guess) doesn’t do much I was bored and kinda made smthin randomRead full post
ben6908
ben6908 shared a Repl
5 hours ago
2
BigJuicyQuiz
BigJuicyQuiz
Share
Python
bigjuicyquiz
big juicy quiz v v v v vvvvvvvvvvvvvvvvvvvvvvvvvvv v v v v v v v v v v vRead full post
bvieira16
bvieira16 shared a Repl
5 hours ago
0
quizz
quizz
Share
Python
Lovely code to get you through the day
For your enjoyment. Please leave us a review on how you found it so we can improve.Read full post
QuantumCodes
QuantumCodes shared a Repl
6 hours ago
0
Twilight progress tracker
Twilight progress tracker
Ask
Python
Transferring replitDB data
For some reason, i had to move a repl to another repl with the database data. Original repl = the repl with the db data New repl = the repl to which the new data is to be transferred. So the approach i used: Print the replit db url from the original repl. print(db.db_url) #I used this print(os.environ["REPLITDBURL"]) #this works the same Go to the new repl and add a secret: os.environ["REPLITDBURL"] = "the original db url." #i didnt add in code like this lol. I manually put in the sidebar Stopped the original repl (didnt delete) Everything works fine. Heres the problem: Replit DB URL updates every month. Will my new repl work fine if the URL changed? If not, is there any way to transfer DB data permanently?Read full post
SaduMatic
SaduMatic shared a Repl
6 hours ago
0
HalfOptimisticRectangles
HalfOptimisticRectangles
Share
LOLCODE
REplit Note
I'm making some projects, and a whole task manager. Join my team. If u want an invite, ask me.Read full post
harshlegandlega
harshlegandlega shared a Repl
9 hours ago
0
general knowledge questions (Harsh)
general knowledge questions (Harsh)general things we use day to day we don't now much about it
Share
Python
can you answer it
good to use as a project funnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnRead full post
prithv1
prithv1 shared a Repl
9 hours ago
0
notepad without backspace
notepad without backspacenotepad made in brainF but backspace doesnt work (look at code)
Share
BrainF
notepadwithout backspace
it is literal notepad but backspace is wierdRead full post
NikithaVS
NikithaVS shared a Repl
10 hours ago
0
snowman game
snowman game
Share
HTML, CSS, JS
Holiday Snowman Game *READ INFO*
Hey guys! Please give this a ❤️ Enjoy! Use arrow keys to play! Do it quickly, because if the snowball hits the ground, it's gone and you don't get the points! Please note that once you get 50 points, a pop-up shows up, but when you click "Okay" it doesn't work. You can just exit the tab to play again, or just exit it :) Please tell me if you like it! Happy Holidays, NikiRead full post
mhmcwatters23
mhmcwatters23 shared a Repl
12 hours ago
1
mhmcwatters23
mhmcwatters23
Ask
Node.js
How do I link to a file outside current directory in HTML?
My file setup is: index.js, views/index.html, and outside of that, public/index.css. I tried using the link tag to link to index.css, but it said gave me a 404 error and said https://mhmcwatters23.repl.co/public/index.css wasn't found. I tried using ../ and ../../ and regular old /, but no way of rewriting my path or my HTML code let me link to my CSS file. I also checked Stack Overflow and didn't find anything helpful. Could someone help me? Thank you.Read full post
RECENT REPLIES
NFadhlurrahman
NFadhlurrahman 7 hours ago
@mhmcwatters23 You should make the `public` folder static, not the `views` folder. ```javascript app.use(express.static('public')) ```
mhmcwatters23
mhmcwatters23 1 hour ago
@NFadhlurrahman Thanks! Does this serve files in both folders, though?
computermonkey
computermonkey shared a Repl
13 hours ago
1
Omor's World!
Omor's World!Its a story about you who rented this hotel for the next 10 years but the hotel is special it keeps getting more floors.
Share
Java
Omora world
this is still being developedRead full post
NikithaVS
NikithaVS shared a Repl
13 hours ago
1
Snowman Project
Snowman Project
Share
Python (with Turtle)
It's the most wonderful time of the year!
Hey guys! I don't normally post my projects, but I felt this is a good one to share with you guys :) I hope all of you are having a great holiday season - no matter what holiday! I would really appreciate it if you gave this project a ❤️ Merry Christmas! NikiRead full post
Steven1232
Steven1232 shared a Repl
13 hours ago
1
Add Mods
Add Mods
Share
Node.js
Help
I need help making an fnf mod! The character is in the repl and the week name is week HRead full post
anandpy2156
anandpy2156 shared a Repl
14 hours ago
3
httpanand
httpanandREADME !
Ask
Node.js
55a19106-90.id.repl.co’s server IP address could not be found.
image I'm not able to access a html file .. Its showing the following error . Please helpRead full post
RECENT REPLIES
ComputingSquid
ComputingSquid 14 hours ago
@anandpy2156 yeeaaahhh looks like repls down
windmill44
windmill44 shared a Repl
15 hours ago
2
calculator
calculatorThis is a simple calculator.
Share
Python
Calculator
This is a new calculator. The only thing is... DO NOT USE THIS TO CHEAT ON YOUR MATH TEST!Read full post
DhirajGhale
DhirajGhale shared a Repl
17 hours ago
1
BMIcalc.py
BMIcalc.py
Share
Python
bmi calculator
simple bli calculator for python learnersRead full post
DhirajGhale
DhirajGhale shared a Repl
17 hours ago
1
TipCalc.py
TipCalc.py
Share
Python
tips calculator
simple tips calculator for learning pythonRead full post
6w6
6w6 shared a Post
18 hours ago
2
JS Audio not Playing
Ask
Read full post
RECENT REPLIES
sn236
sn236 10 hours ago
could you share the code or the repl
MrVoo
MrVoo shared a Repl
18 hours ago
1
chicken nugget
chicken nuggetI was bored, okay?
Ask
HTML, CSS, JS
[JS] How do you use OpenWeather API (or any API?)
I've been trying a few different ways, like fetch() and XML things, but none of them work... not to mention I don't know how they work anyway ;) I'm using browser JS, here's an example of the code I'm using: const url = http://api.openweathermap.org/data/2.5/onecall?lat=${settings.latitude}&lon=${settings.longitude}&units=${settings.units}&appid=${key}; fetch(url) .then(response => response.json()) .then(data => { alert(data); }) .catch(() => { alert("Please search for a valid city :("); }); Also, ignore the replRead full post
RECENT REPLIES
sn236
sn236 10 hours ago
@MrVoo Maybe check [this](https://rapidapi.com/blog/openweathermap-api-overview/javascript/) , You can also take a look at [this](https://codepen.io/areeburrub/pen/Rwpjjog)
DonoldJTrump
DonoldJTrump shared a Repl
19 hours ago
0
number game
number game
Ask
Python
Logic Errors
When this program sets the variable called_num to 10, it seems to not work. It also does this to other numbers randomly. What is the problem?Read full post
RECENT REPLIES
MrVoo
MrVoo 18 hours ago
@DonoldJTrump Maybe you're thinking lists start with [1] instead of [0]?
DonoldJTrump
DonoldJTrump 18 hours ago
@MrVoo no, there are 11 total elements in the list. That should make sure that i can use the ids with out having to worry about zero-indexing.
BasilRoy
BasilRoy shared a Repl
19 hours ago
1
Triangle Times
Triangle Times
Tutorials
Python
The simple repl towards Python
__This is programmed to tell you whether the triangle you are measuring is isosceles, scalene or equilateral.Read full post
RECENT REPLIES
MrVoo
MrVoo 18 hours ago
@BasilRoy nice
Mihoru
Mihoru shared a Repl
20 hours ago
0
DaBotty
DaBotty
Ask
Python
Program will not run. Bot remains offline in discord.
I cant get my discord bot to appear online nor the code will run for me. Am I doing something wrong?Read full post
dudeactualdev
dudeactualdev shared a Repl
20 hours ago
0
Solidity Starter
Solidity StarterAn ethereum blockchain stuff.
Ask
Solidity starter (beta)
How?
How do I make a custom RPCURL?Read full post
TypicalCoder
TypicalCoder shared a Repl
20 hours ago
2
Tech support simulator
Tech support simulatorsimulates a convo with a indian tech support scammer in the console, "sir i think this is a prank we will call you back later if you are mature ok bye bye" Made By TypicalCoder in C you have 3 phds? thats great try clicking forgot password for me sir
Share
C#
Tech support simulator
Y O U H A V E 3 P H D S ? T H A T S G R E A T , T R Y R E B O O T I N GRead full post
RFL890
RFL890 shared a Repl
21 hours ago
0
SuperTuxCart
SuperTuxCart
Ask
Bash
Hacker storage increase not working?
I have SuperTuxCart tarball right here. I tried to tar -xf it, and got a storage quota warning for some reason. Pretty sure thats not 5GB or anything.Read full post
Thehappysquid
Thehappysquid shared a Repl
21 hours ago
0
Online Game
Online Game
Ask
HTML, CSS, JS
How Do I make an online game in Javascript?
I need help making an online game in Javascript. I am not sure where to start.Read full post
RECENT REPLIES
MrVoo
MrVoo 18 hours ago
@Thehappysquid Try learning [kaboom](https://kaboomjs.com)
Carlover101
Carlover101 shared a Repl
21 hours ago
0
Tower of Hanoi V2
Tower of Hanoi V2This is the second and much better version of the game called Tower of Hanoi. The goal of the game is to move the disks from the left peg to the right peg in the minimum amount of moves. This version is unbreakable (to my knowledge), and it also gives you an error message if you do something wrong. Here's the link to the original: https://replit.com/@Carlover101/Tower-of-Hanoi?v=1 Also, fun fact: I wrote this in exactly half of the lines of the first version.
Share
Python
Much Better Tower of Hanoi
The second revision of the game Tower of Hanoi that I ripped off in Python. Have fun trying to break it... :) Oh, and maybe check out the first one here: https://replit.com/@Carlover101/Tower-of-Hanoi?v=1Read full post
Load more