Skip to content
Open navbar menu
Sign UpLog In
Profile icon

mehdi

@potatojs
i am the ultimate being, the upgarde that humans needed but didn't deserve...
potatojs
potatojs
shared a Post
2 years ago
TypeGraphQL: how to access the parents fields values inside a FieldResolver
i'm using apollo-server-express mongoose typeGraphQL and express of course i have a book type and an author type: @ObjectType() export class BookType
potatojs
potatojs
published a Repl
2 years ago
0
success paradox
success paradoxsurvive as long as you can
potatojs
potatojs
shared a Post
2 years ago
HELLO HELLO hello go HELLO HELLOOOOOOOOOOOOOOOOOOOOOOOO UPDATE1: don't worry your progress won't be removed (hopfully): fixed the tabs thing now time
Survive2D
Node.js
CheeseTheRat
CheeseTheRat
Here is a tip for the newer or worse players: don't under any circumstances get a sword. Get a wooden axe, wooden pickaxe, stone pickaxe, and then immediately go for the shotgun, sniper, or pistol. Killing the enemies will take up too much time without a gun, so i recommend getting the shotgun. Keep getting materials throughout the night to. Also, dont lock yourself in a box. You cant break your own blocks so you will most likely die. Your welcome.2 years ago
CheeseTheRat
CheeseTheRat
@potatojs i was wondering, is there a set chance that 2 of the giant devils will spawn every night (9 and after)? I was on night 9 and one spawned at the beginning and one at the end.2 years ago
CheeseTheRat
CheeseTheRat
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 921A0740-28EB-4B81-90ED-3FB4245C474E WHY AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2 years ago
potatojs
potatojs
shared a Post
2 years ago
so i bought this rasberrypi 4 and i wanna use it to make my first home server, i learned nginx, docker, ssh, ufw as my firewall, port forwarding (i di
xfinnbar
xfinnbar
The dev servers don't have security issues mostly, but they do sometimes have poor performance. For a home server, as long as your code isn't vulnerable, the server isn't. You should probably put it behind cloudflare anyway.2 years ago
VulcanWM
VulcanWM
woah I haven’t seen u on replit for a long time2 years ago
potatojs
potatojs
shared a Post
2 years ago
ok so i was searching for hours how to get third party libs working with typescript because apparently every "advanced" typescript tut is either using
Coder100
Coder100
yeah no it doesn't there's 2 types you either import the p5 class and so not everything is global import p5 from "p5"; iirc or you just don't use ts typings -- i don't believe the lib supports typings for global functions.2 years ago
potatojs
potatojs
shared a Post
3 years ago
hi hello there how it works so you have the stop and run buttons which are used to stop or continue running an algorithm 14 ways of calculating PI th
calculating PI
HTML, CSS, JS
CHRISTIANMATTHY
CHRISTIANMATTHY
i made a series too :). it converges horribly but it works. heres an image of the series (you can't see it very well if you're on dark, but it's below. save the image and then open it to see it well) image2 years ago
Whippingdot
Whippingdot
POG Also I luv these _random ways to calculate pie image3 years ago
OldWizard209
OldWizard209
potato attaccccc potatoo proteccc BUT MOST IMPORTANTLY POTATO COIME BACCCC3 years ago
potatojs
potatojs
shared a Post
3 years ago
TsunamiOrSumth
TsunamiOrSumth
use @RayhanADev's GraphQL thing3 years ago
RYANTADIPARTHI
RYANTADIPARTHI
I don't know about this, maybe try looking into it, or asking some heads.3 years ago
ironblockhd
ironblockhd
Try to run this in your browser console: REPLITREDUXSTORE.getState().user.userInfo.timeCreated3 years ago
potatojs
potatojs
shared a Post
3 years ago
i was trying to create a repl and this happend.. image what is that?? is this a bug?? because if it was this is the worst bug ever happend to me
JBloves27
JBloves27
oof3 years ago
MocaCDeveloper
MocaCDeveloper
No, it isn't a bug. It seems as if you were attempting to make a private repl, which enforces you to get the hacker plan.(I believe). So yeah. I don't think it's a bug, but if you want you can report it here as a bug!3 years ago
Coder100
Coder100
Yea, the thing is when you press enter, it automatically makes the repl private (ugghhghghghghghghgh) Solution so what you do is click create repl instead of press enter idk if you should report to bugs (i wouldn't), but yeah, know it's a stupid thing3 years ago
potatojs
potatojs
shared a Post
3 years ago
i wanna something like the eval js function, a function that does something like: fancyFunction("2+2") // 4 but i want it FAST just to get what i'm t
Coder100
Coder100
new Function("2+2")(); // makes ur own function how fast is that `3 years ago
Coder100
Coder100
make your own language--no XSS, no js quirks, your own syntax!3 years ago
RYANTADIPARTHI
RYANTADIPARTHI
it will not evaluate if you are doing this in str format. do it in int format3 years ago
potatojs
potatojs
shared a Post
3 years ago
hi so ehhh i wanna try react and everyone is using this thing called create-react-app that makes for them a.. template? to start easly with react.. ho
Coder100
Coder100
ok, here you go: npx create-react-app my-app then after like doing your magic, to run the server: cd my-app ; npx static-here3 years ago
Coder100
Coder100
nothing, that's not even enforced3 years ago
potatojs
potatojs
shared a Post
3 years ago
how they work? how you do them? this optionnel i wanna know that just so i understand them and how to protect your site from them? because i didn't f
mwilki7
mwilki7
Here's something interesting while we're on the topic of hacking. A 17 year old user back in 2016 hacked into Nintendo's servers to leak information about the Nintendo Switch Edit: Okay, after reading the article again I realized there were some other indictments that may not be all-age-friendly to read, so I'll leave the link out. The Nintendo hacking was the cool part anyway.3 years ago
mwilki7
mwilki7
It's when you change something on the server using a user-input vulnerability. Most interpreted languages have to take this into account. One principle to have towards XSS attacks is: Never trust user input on anything. Always assume every tool you give to a user will be abused.3 years ago
Coder100
Coder100
Easy, it's just when you forget to make HTML to plaintext, try doing this: document.body.innerHTML += 'haha' That's XSS because you forgot to decode the HTML. Instead, have: document.body.textContent += 'haha' This is most commonly found inside chats lol3 years ago
potatojs
potatojs
shared a Post
3 years ago
hi, i'm using node.js express and ejs as template engine and what i want is to use repl auth in my app... and get access to the users name and id and
Coder100
Coder100
EJS is literally magic that replaces your code. If you did: Hi In the source, it becomes: Hi Coder100 So, DOM is going to be literally replaced lol: Hi console.log('') `3 years ago
potatojs
potatojs
shared a Post
3 years ago
hi so i was planning to learn mongoDB and when i got started i was totally confused lol first i though mongoDB was a library or a framework that allow
Coder100
Coder100
ok lets start. Mongodb is a company Create an account to make a noSQL database. Mongoose is a library interacts with the database. So saying learning mongoDB is like saying you are trying to learn repl.it. Saying you are trying to learn mongoose is like saying learning to code. Firestore is better. mic drop\3 years ago
potatojs
potatojs
shared a Post
3 years ago
hi so i was using bot-usage until i can't send messages any more, it was more than 3 hours now and i'm still can't send messages in any channel
HackermonDev
HackermonDev
at least, you're not actually banned from the discord.3 years ago
Coder100
Coder100
No, you are just muted. This is what happens when you type too fast. DM @AllAwesome497 for getting unmuted. Next time watch yourself. Also, getting banned means you wouldn't even be able to join the server anymore.3 years ago
potatojs
potatojs
shared a Post
3 years ago
thank u vm for everyone that voted commented in my repls :) in 150 i made 2d fire works in 500!!i made 3d fire works in 1000 ....??? move using ur mou
3DfireWorks
HTML, CSS, JS
Jakman
Jakman
nice.3 years ago
angrydoge
angrydoge
Dude, I had an idea, but its not 5d or 4d, its 1d. the first dimension is where everything is a line, so maybe you could make a raycast engine type of thing with fireworks?? idk just an idea3 years ago
KellerWorthen
KellerWorthen
This is some serious code3 years ago
potatojs
potatojs
shared a Post
3 years ago
hi hi the story every one is dead :) wich is nice by the way :D what happend so the US made a corona virus cure!! but because of some weird error the
zg
Node.js
heythere12
heythere12
Um- if you seen a comment like this its just me from a diff acc- but i forgot the pass in that acc- So, um when i tried adding random pics and stuff to make dif enemies it just like- loading for eternity Pls help2 years ago
NehalRam
NehalRam
Little did he know that he would make one of the best browser games ever2 years ago
potatojs
potatojs
shared a Post
3 years ago
hi so i know some node.js and i want to create my very own bot how?
EpicGamer007
EpicGamer007
Try this 3 years ago
potatojs
potatojs
shared a Post
3 years ago
Hi is it legal to have 2 repl.it accounts?
PattanAhmed
PattanAhmed
@potatojs Hi, Yes, It's legal to have Two Repl.it Accounts. Just don't spam yourself by upvoting your own posts... It is out of Rules and Regulations. Thanks! Hope this helps3 years ago
DynamicSquid
DynamicSquid
yes. I have 2. one is my main account (this one), and the other is my school account (but I never use it now). just don't upvote your posts with the other account3 years ago
CodingCactus
CodingCactus
erm yeah, I have 43 years ago
potatojs
potatojs
shared a Post
3 years ago
so i was reading some posts and in half of them i found a guy that says plz upvote or mark this as an answer or the guy that says to the other guy yo
RandomForgetfulUsername
RandomForgetfulUsername
Cycles are useless1 year ago
mwilki7
mwilki7
potatojs when ur next game??3 years ago
k9chelsea2
k9chelsea2
yep cycles have no significant meaning 2. people are just fame hungry they think the more cycles they have the more popular and cool they will be, as you said people care more about upvotes than about learning and its really sad to see ngl. People that say "please mark this is as correct answer" just pressure weak minded people to select it as answer even if the answer is not helpful or is wrong. Its a bit like scratch tbh everyone wants fame for some reason and its dumb. the amount of cycles yo3 years ago
potatojs
potatojs
shared a Post
3 years ago
the note App hello and welcome every one in my note App! where you can: write notes and save them so no one can see them add a drawing with your n
noteApp
Node.js
k9chelsea2
k9chelsea2
this is so cool3 years ago