Share your repls and programming experiences

← Back to all posts
Text Editor Like Repl.it!!!! [ClearCode.tk]
h
RohilPatel (1168)

Hey guys ClearCode.tk Gen 2 is out. @Theboys619 and I made it, and it is a lot like repl.it.

There is no upvote system tho, so yeah

Commentshotnewtop
xxpertHacker (387)
  • XTerm is terrible
  • the pages are slow to load
  • the CSS needs to be fixed up
  • the server can be fixed up
  • ...

Lol, this is garbage; need some help?

RohilPatel (1168)

Yeah, first get on discord bud @xxpertHacker

xxpertHacker (387)

@RohilPatel I deleted my Discord account... it's a looong story.

Kinda sad, I was leader of a 500+ person server :(

RohilPatel (1168)

Are u gonna get discord then? Tell me the long story! @xxpertHacker

xxpertHacker (387)

@RohilPatel It's also a story that should be publicly spoken of, and no, I don't have a phone for the time being either, thankfully I still have a computer capable of running Repl :)

RohilPatel (1168)

Did u lose ur phone cuz u did something bad? Will u get ur account back? @xxpertHacker

xxpertHacker (387)

@RohilPatel As I said, it'll take some time to explain the details, but the account deletion was intentional. So... it's gone, like forever.

RohilPatel (1168)

Really? It says I've friended u...tell me, though, what happened on that repl I sent you @xxpertHacker

CodingCactus (3008)

@xxpertHacker hi, try to be more constructive in your criticism rather than just saying it is terrible

RohilPatel (1168)

No no he is good! I know him and the way he does it, and I know he was joking to an extent @CodingCactus

xxpertHacker (387)

@CodingCactus Cactus, to a major degree, it was more of a joke, since Rohil and I often work together. Trust me, I would never go out and randomly say something like that to hurt someone, I oftentimes would be constructive.

Also, I upvoted it regardless.

But this actually can be improved quite a bit. It definitely needs something unique, there's currently no reason to prefer this over Repl.

RohilPatel (1168)

@mememanhimself hey there! someone told me about how you like nodejs, and html5!! i would love to do a collaboration with you.

MemeManHimself (80)

@RohilPatel ...hi?

uh why did you mention me...

RohilPatel (1168)

i was told that you like nodejs and html!! wanted to see if you were interested in making a repl with me @MemeManHimself

MemeManHimself (80)

@RohilPatel lol I'm only decent in JS with the https://khanacademy.org API :/ I usually just stick to HTML/CSS and a little JS.

RohilPatel (1168)

ok! any ideas on what to build? @MemeManHimself

RohilPatel (1168)

sure, sounds like something we could do @MemeManHimself

MemeManHimself (80)

@RohilPatel Ok. Template or no template?

MemeManHimself (80)

@RohilPatel I'd go with the template tbh

MemeManHimself (80)

I'ma just invite you to a repl lol

RohilPatel (1168)

Oh no, I just had to go! I'll be back soon, I got a bit of a headache @MemeManHimself

MemeManHimself (80)

@RohilPatel Oh, ok. Lol kinda seemed like it from my point of view. People get mad at me for being talkative, and I try my hardest not to bug people. Won't be able to do anymore today, I don't think. But I'm open 3:00 usually!

RohilPatel (1168)

What time zone? Also I am very talkative too, so ur good @MemeManHimself

MemeManHimself (80)

@RohilPatel um (GMT-5) we are in central daylight time so I think CDT

MemeManHimself (80)

@RohilPatel I'm open for a bit rn. You?

MemeManHimself (80)

@RohilPatel what time is it for you right now? for me it's 7:50.

MemeManHimself (80)

@RohilPatel oh nice. I got until 8:30. wanna work on the bot?

MemeManHimself (80)

@RohilPatel our bot ain't workin' anyways

MemeManHimself (80)

@RohilPatel also I'm on my school account rn so discord is blocked lol but I do have my tablet.

MemeManHimself (80)

And I have a 2 hour lunch for some reason XD

MemeManHimself (80)

@RohilPatel

Theboys619 has -99999 points!
Then how is he 3rd on the leaderboard lol

Leroy01010 (243)

YOU DO KHAN???????

mind: duhh!!

@MemeManHimself

Leroy01010 (243)

tell me your username!!!

mind: errm i don't think he will

@MemeManHimself

Soccer135246 (2)

super nice, but could u add python and java?

VivaanSa (27)

Hmmmm.... We Couldn't Reach Your Repl
Make sure your repl has a port open and is ready to receive HTTP traffic.
Return to Repl.it?

sojs (246)

Its down - refer to my other comment:

Leroy01010 (243)

YW

mind: what are you doing
me: typing
mind: welll stop!!!
me: no.
mind: terminate!!!...

@RohilPatel

ridark (87)

i let it run for like maybe a half and hour and thats all it did @Programmer567

Smart0ne (17)

Doesn't work..sadly :(

Blackout4344 (30)

#doesnt work for me

JudeAustin1 (0)

Yo, that's really good. I did a little test, linking to my actual website, and it seems to work! The design of the editor is also really nice, but I think there should be some kind of file navigator so you can create and link different files to clean up your work a little bit and have multiple webpages.

Kudos (30)

This is pretty good actually.
The problem is when I tried to run my project, it worked, but the main page WAS my project...
What's especially concerning is that no cookies were sent, meaning that this was not just for me?????

xxpertHacker (387)

So... still don't need any help? I've got some time this month to code, and no personal projects to do (okay, there's one).

RohilPatel (1168)

Yeah fix all the errors I invited u @xxpertHacker

xxpertHacker (387)

@RohilPatel Cool, I'ma check it out, I see misuse of fs.unlink already...

xxpertHacker (387)

@RohilPatel How did you maintain such a massive (mildly disorganized) project successfully for this long?

xxpertHacker (387)

@RohilPatel How about, I do the front-end, while you two handle the backend?

Recently, I've been working on a web-based editor that uses some of the most bleeding-edge tech available to a browser, which might be useful here.

RohilPatel (1168)

Ree, as long as u don't use xhtml @xxpertHacker

RohilPatel (1168)

Noooooo, I don't get syntax highlighting @xxpertHacker

xxpertHacker (387)

@RohilPatel Wdym? For what? Where? On Repl? When?

xxpertHacker (387)

@RohilPatel Just use XML highlighting, it's better than HTML highlighting.

xxpertHacker (387)

@RohilPatel Example of XML highlighting: https://repl.it/@xxpertHacker/G-Text-Editor#index.xml, it works just fine.

I'm thinking a mix of that Repl along with my old garbage HTML editor over at https://webdevide.xxperthacker.repl.co and with the integrated updated code from https://ioTest-1.xxperthacker.repl.co.

Maybe there's something to gain from https://js.xxperthacker.repl.co?

To top it all off, I could probably implement something like a light-weight, simplified version of https://webassembly.github.io/wabt/demo/wat2wasm, running in a worker thread.

Thinking about it, tbh I'd probably just make my own server with Deno or Actix in Rust...

RohilPatel (1168)

It's not it being down, like that, there is an error @sojs

oignons (308)

It's down.
(On mobile, can't provide screenshot atm)

oignons (308)

@oignons Update: Still down. Please fix.

rediar (340)

add syntax hihglighting

ASTROIDE (1)

There is still a way to bypass the security:
require('child_process').exec('cd ../../..;ls', console.log);

WYLDYR (33)

@ASTROIDE Yeah, I noticed that too

aguy11 (119)

Hello. I can't click on my projects. Is it supposed to be that way?

RohilPatel (1168)

a bug happened, just wait while we fix this! @aguy11

RayvelArjoon (87)

The IDE needs to be cleaner
It should also have a user friendly UI.
The system doesn't have a proper database so making a username is a little bit useless.
I will give you props for the design though.
The terminal is a little buggy and needs a little work.
Also, the 'current' file is a little odd.
You say it's; for instance; '/script.js'
You could just say: 'script.js'.
Sorry if I'm being nit-picky, but when you make something like an IDE,
it needs to make itself stand out VS others.
You have the general idea of a basic IDE, but it really is no
different from a lot of them.
Maybe try making it more creative and generate some new ideas that haven't been used.
Great work though!

RohilPatel (1168)

Thank you! I prefer to use /index.js because it's sometimes useful @RayvelArjoon

RayvelArjoon (87)

@RohilPatel It's not really that useful. The 'slash' is used to show a file directory/path. You are in a file on its own so using file.js instead of /file.js is a lot better. The slashes are only useful for:
C:\users\rayve\OneDrive\Documents\example.js

RohilPatel (1168)

It's better than "../x/feet/eriifidgef/index.html" @RayvelArjoon

RayvelArjoon (87)

@RohilPatel Why is there a folder named feet?

AmazingMech2418 (891)


This is what happens when you have a non-sandboxed Bash terminal linked to a Repl.it server and you modify the .replit file and use the kill command remotely...

AmazingMech2418 (891)

@AmazingMech2418 Well, I must give you credit for not using eval! LOL! This is not much better though...

AmazingMech2418 (891)

@AmazingMech2418 Sorry for the typo in the .replit file! LOL! I'd recommend not putting back up the server until fully secured. Someone could modify all of the code to make it into a malicious website... Or someone could delete all of your work...

AmazingMech2418 (891)

@AmazingMech2418 Me shutting down the website is honestly doing you a favor. Someone else could literally delete all of your code with this...

AmazingMech2418 (891)

@AmazingMech2418 It's better now, but doesn't work if you try to run the project. If you would like, I could help with the security stuff!

Theboys619 (26)

I don't know if its fixed or if it works well. See if you can find more vulnerabilities. @AmazingMech2418

AmazingMech2418 (891)

@Theboys619 You can still shut it down with the following code:

echo "run=\"bash\"" > ../../../.replit
kill 1
kill 0
Theboys619 (26)

Are you just doing cd .. ; cd .. ; cat > .replit ? @Theboys619

AmazingMech2418 (891)

@Theboys619 Please let me know when it is back up so I can test two more things to check and make sure everything is sandboxed correctly.

AmazingMech2418 (891)

@RohilPatel It seems broken... I can't access any projects...

AmazingMech2418 (891)

@RohilPatel @Theboys619 Let me know when this has everything up again... I can't test the two possible vulnerabilities if I can't make a project with it. LOL!

AmazingMech2418 (891)

@RohilPatel I tried forking it since it is down and it seems like it won't load Monaco... Also, file IO via the command line is important, but the functionality has been removed. Try sandboxing it instead...

AmazingMech2418 (891)

Check out the hacked.txt file... This is like the most vulnerable thing in the world...

AmazingMech2418 (891)

@RohilPatel I just made it into a Bash terminal. LOL!

AmazingMech2418 (891)

@RohilPatel Sorry, but I just shut down the server...

potatojs (800)

for some reason when i try to enter my project i just created it sends me back to the projects page

potatojs (800)

lol wat
let me try again
@RohilPatel

RohilPatel (1168)

ok lol i could reset the server if u want @potatojs

potatojs (800)

ok thanks i'm gonna try again
@RohilPatel

potatojs (800)

@RohilPatel
it didn't work :(
so i checked the console and i got those errors

RohilPatel (1168)

@potatojs @Theboys619 did someone bypass the file somehow?

potatojs (800)

idk btw does the app work for you?
@RohilPatel

Theboys619 (26)

There is no way RN that checks if a user exists already. So sometimes when there is more than 2 users in the db it gets a different one. That one will have a different ID than the one you made. Also that was just a CORS issue I forgot to fix. This is really buggy and haven't worked on it in a long time. @potatojs

RohilPatel (1168)

this repl is really close to trending @Theboys619

Theboys619 (26)

It's even more buggy because of the DB being on a seperate repl. So if that repl goes offline, which it often does, it will break the entire website. Defintely should've used MongoDB or Repl's DB. @RohilPatel

Theboys619 (26)

I was just trying to get everthing to work before fixing vulnerablities and naming issues. @potatojs

potatojs (800)

ok...i thing that make sense
@Theboys619

Theboys619 (26)

I actually never even finished or fixed bugs. I stopped working on after a while. This project is pretty old. @potatojs

rjlevy (395)

Hey @RohilPatel, this is awesome! How long has it taken you do this and what are you using for the back-end?

RohilPatel (1168)

Nodejs and about 2 weeks. Just decided to let this wait @rjlevy

rjlevy (395)

@RohilPatel that's impressive. What kind of database are you using?

rjlevy (395)

@RohilPatel thanks. Sorry for all the questions but I've been looking for a backend solution on repl.it for a while and have only used Google Firebase.

I'm not sure what you mean by JSON. Are you using MongoDb? I'd love to know how you're storing data on the backend. Thanks 😊

firefish (507)
String.fromCharCode(
  (typeof typeof 0)
  .charCodeAt(3) - 1)
  .toUpperCase() + 
  (typeof 0)[4] + 
  (typeof true)[3] + 
  (typeof true)[3] + 
  (typeof true)[2];
NeilScienceguy1 (0)

@RohilPatel can i write python code here? or any other language? if yes then how?

ByBolawa (0)

this is just like repl.it! impressive!!!

Codemonkey51 (849)

Problem you can escape your folder then mess up the server