Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Samuel Waller

@SamuelWaller
Repls
Community
SamuelWaller
SamuelWaller
shared a Post
3 years ago
how to store data in js
What is the best way to store a table of data in js? I want to be able to search it both ways, instead of just an object where the relationship is one
mwilki7
mwilki7
I think you will want a map data structure. var dataMap = new Map(); var testObject = {x: 1, y: 2}; dataMap.set(1 , "test" ); // 1 now points to "test" dataMap.set(testObject, "test2"); // testObject now points to "test2" console.log( dataMap.get(1) ); // prints "test" console.log( dataMap.get(testObject) ); // prints "test2" If you want to retrieve the data both ways, be sure to set them both ways like so: dataMap.set(testObject, "test2"); // testObject will give you "test23 years ago
NoelB33
NoelB33
Not sure what you mean, but try localStorage? Tell me if this isn’t what you meant.3 years ago
SamuelWaller
SamuelWaller
shared a Post
3 years ago
I have imported a github repo that is pure html, but how do i configure the run button? it is mandatory, but how can i get it to display the webpage?
whid-ide
Bash
SamuelWaller
SamuelWaller
![image](java script:alert(1)) locator3 years ago
SamuelWaller
SamuelWaller
shared a Post
3 years ago
This is one of those things that makes no sense, and I have tried everything. I really hope there is a stupid simple fix and I just didn't look hard e
youknow
express
SamuelWaller
SamuelWaller
shared a Post
3 years ago
I am trying to learn the ways of socket.io, but I cannot find socket.io.js. In an example repl I have seen, they simple pointed at /socket.io/socket.i
Wireless Computer
Node.js
Coder100
Coder100
Diagnosis Yes, this is a bug with repl.it. For some reason, they do not show automatically-generated files from packages. Solution However, the file is still there! See, it is in the directory. Further Steps Report this bug to be fixed.3 years ago
SamuelWaller
SamuelWaller
shared a Post
3 years ago
Hello! I was working on my express site, when i noticed that there was an optin the close the web view, and because i didnt want to see the preview, i
Vandesm14
Vandesm14
On your original project, you need to run this command in the console npm install express3 years ago
CSharpIsGud
CSharpIsGud
https://repl.it/@SamuelWaller/MildLowestKernelmode You commented out app.listen on line 463 years ago
SamuelWaller
SamuelWaller
shared a Post
3 years ago
I was making an express server that downloads urls, and am going to make a function to search it for specific images. I was testing it, when my friend
Vladybot
Vladybot
I was coding in python and a html code showed up on the console which I copied and the website says this Please enable cookies. Error 1015 Ray ID: 6c3a567e8ad32c9b • 2021-12-26 12:33:29 UTC You are being rate limited What happened? The owner of this website (discord.com) has banned you temporarily from accessing this website. Cloudflare Ray ID: 6c3a567e8ad32c9b • Your IP: 35.232.71.37 • Performance & security by Cloudflare I copied the IP into the google search and it said ヾ(*ФωФ)βyё βyё☆彡1 year ago
HeorhiiChekan
HeorhiiChekan
if you have a bash repl and in the terminal type 'curl ifconfig.me' , it will give you that machines public ip address. (their router address), but if you go there(paste it in the url field in your browser), it will also show that message " ヾ(*ФωФ)βyё βyё☆彡 ".2 years ago
Vandesm14
Vandesm14
There is not a blacklist to my knowledge. But there is, in fact, a proxy which repls hide behind. But that shouldn't be the problem.3 years ago
SamuelWaller
SamuelWaller
shared a Post
4 years ago
Hello! I am trying to make a simple express site, mostly for practice. I made an HTML contact form, and the server receives it and everything works. H
website
express
Zavexeon
Zavexeon
The file ./message doesn't exist, so there's nothing to append to. Also, it'll need an extension, most likely .txt in your case.4 years ago
SamuelWaller
SamuelWaller
shared a Post
4 years ago
Hello! I am trying to make a webpage in express for a technology class, and my 'app.get' isn't working. It gives this error: TypeError: path must be
website
express
Vandesm14
Vandesm14
Yes, the express example is different from the fresh template that is inserted to each new express repl. The example is very dated and should be changed. You should propose this update to https://repl.it/feedback4 years ago