Skip to content
Sign UpLog In
Profile icon

19ecal

@19ecal
I know a reasonable amount of Python. I'm doing GCSE Computer Science and also SANS Foundations, where I'm learning a bit of C, not much tho
  • password

    Cover page
    Made with Python

    A password cracking repl written in Python

    Recent comments (2)

    so cool... wow

  • urls

    Cover page
    Made with Python

    A basic URL shortener written in python using Flask. Read README.md for more detail.

    Recent comments (0)
  • ctf thing

    Cover page
    Made with Python
    Recent comments (0)
  • myopl-c++-nix

    Cover page
    Made with Nix

    An interpreter for a BASIC-like language written in C++, translated from Python

    Recent comments (0)
  • huffman

    Cover page
    Made with Python

    huffman coding/compression in python3

    Recent comments (0)
Repls
Community
19ecal
19ecal
shared a Post
1 year ago
which pointer to use c++
i am making an interpreter for a language and i am wondering when i am making the ast whether i should be passing around a Node, Node*, std::sharedptr
myopl-c++-nix
Blank Repl
ANDREWVOSS
ANDREWVOSS
If you don't want to deal with dynamically allocated memory, then use uniqueptr or sharedptr, which deal with it for you. The main difference is that there can only be 1 uniqueptr pointing to any given Node, while you can have any number of sharedptrs pointing to a Node. I'd recommend unique_ptr, unless you need to have multiple pointers to a node.1 year ago
19ecal
19ecal
shared a Post
1 year ago
I'm trying to make a class to interact with a database server (which I have already written and works), but I do not know enough about async programmi
NovelDecimalBackups
Python
19ecal
19ecal
Fixed with nest-asyncio package, added import nest_asyncio nest_asyncio.apply() to the top of sqlclient.py1 year ago
19ecal
19ecal
shared a Post
2 years ago
i need to sanitise some input to use in an sql query, but the python module i am using does not appear to support parameterised queries (i.e cur.execu
19ecal
19ecal
shared a Post
2 years ago
Basically put this in your .replit file: run = "(python3.10 --version || install-pkg python3.10) && clear && python3.10 main.py" Explanation: (python3
UMARismyname
UMARismyname
just saying for anyone who came here from google, this won't work anymore. You could fork this to get a nix-based python 3.10 repl with all features you'd usually expect included, or this for 3.119 months ago
19ecal
19ecal
UPDATED (using nix): make a new nix repl: https://replit.com/new/nix put this into replit.nix: { pkgs }: { deps = [ pkgs.python310 ]; } put this in .replit run = "python3.10 main.py" `1 year ago
prajwal0
prajwal0
Does this work with external packages from PyPI (pip install __ or Replit's packaging manager)?1 year ago
19ecal
19ecal
shared a Post
2 years ago
#python
#compression
#huffmancoding
Huffman Compression/Coding in Python Huffman Coding is a way of compressing text using binary trees, with my implementation I compressed the entire s
huffman
Python
figglediggle
figglediggle
Cool2 years ago
19ecal
19ecal
published a Repl
2 years ago
0
huffman
huffmanhuffman coding/compression in python3
19ecal
19ecal
shared a Post
2 years ago
I'm trying to use netcat but according to install-pkg netcat; netcat --version the installed version is bash: netcat: command not found funny ikr How
ch1ck3n
ch1ck3n
ok what language are you trying to install this on2 years ago
19ecal
19ecal
shared a Post
2 years ago
i'm trying to make it so that you can download an image just by clicking on it currently i have but on clicking the image there is a warning Download
Coder100
Coder100
You can't actually install the image due to a replit bug. Click this button instead to open it to a new page to install it! image2 years ago
LeoXu2
LeoXu2
its probably because you have to open it in a new tab or something image2 years ago
19ecal
19ecal
published a Repl
2 years ago
1
password
passwordA password cracking repl written in Python
19ecal
19ecal
shared a Post
2 years ago
I'm making a command line thing But that is not what I'm asking about Do I go pythonic srcpath=os.path.normpath(os.path.expanduser(args.src)) if args.
19ecal
19ecal
shared a Post
2 years ago
https://exploit-me.19ecal.repl.co There's a PHP server running there that is hiding a secret See if you can find the flag No prizes
dont deleteme
Python
19ecal
19ecal
If you want more hints, message me on repldm between 9AM-5PM GMT as that's when I'll be mostly online (Not on weekends tho)2 years ago
Brendan23
Brendan23
@19ecal I can't even get past the first level even with hint. lol.2 years ago
19ecal
19ecal
shared a Post
2 years ago
I'm trying to make a function to compile and run a C/C++ file I give it, then delete the executable In .replit I have run="bash main.sh" In main.sh: g
programmeruser
programmeruser
The shell tab that you opened and the script are two different bash instances. EDIT: see my comment below2 years ago
19ecal
19ecal
shared a Post
2 years ago
Ok, so I've got a basic Flask server running, nothing complicated, code: from flask import Flask app=Flask(name) @app.route("/") def hello(): return
Coder100
Coder100
res=requests.get("http://FreshThunderousRepositiories.19ecal.repl.co") print(res.text) `2 years ago
Coder100
Coder100
You can't have the extra www, it's already a subdomain. You should know that it is hosted on http://FreshThunderousRepositiories.19ecal.repl.co lol2 years ago
19ecal
19ecal
Ok, having changed the code to request to http://www.FreshThunderousRepositiories.19ecal.repl.co instead of https:// , requests returns HTML for this page image Which is clearly not my basic server And urllib returns 4042 years ago
19ecal
19ecal
shared a Post
2 years ago
A simple GUI for my quadratic equation calculator Again, probably not the best way to do it, suggestions welcome. Note: Originally made in IDLE on my
tkquadratic
Python
19ecal
19ecal
shared a Post
2 years ago
fill your computer with hehe run at your peril
hehe
Python
19ecal
19ecal
shared a Post
2 years ago
I made this. It should solve quadratics of the form ax^2+bx+c=0, when a!=0. It's probably not the most efficient way of doing it. Suggestions welcome
quadratic equation
Python