Skip to content
Sign UpLog In
Profile icon

Anthony F

@AnthonyFerr
Repls
Community
AnthonyFerr
AnthonyFerr
published a Repl
5 months ago
0
ap stats card thing
ap stats card thingAP stats thing
AnthonyFerr
AnthonyFerr
shared a Post
2 years ago
Run the script, and type any number between 0 and 1, then a number between 0.1 and 2, at increments of 0.1. Why does it eventually settle to -inf? I k
Period Doubling Bifurcation Diagram for Logistic Map
Python
Coder100
Coder100
did you accidentally divide by 0?2 years ago
AnthonyFerr
AnthonyFerr
shared a Post
2 years ago
When importing the pycountry module, something prevents it. Usually on local environments, I can solve this by doing a manual pip install. For some re
Pycountry
Python
RYANTADIPARTHI
RYANTADIPARTHI
try pip install pycountry. If that doesn't work, it's probably not available on repl.it yet.2 years ago
InvisibleOne
InvisibleOne
go to the shell tab in the console and type pip install pycountry Or if that doesn't work, do this: import os os.system('pip install pycountry') `2 years ago
IntellectualGuy
IntellectualGuy
Go to the left part of your repl where you see packages, search pycountry, click on it and then press the plus sign, if you're still having trouble, just ping me and add me to the repl. Or report to bugs. Also repl does support pip install, but you have to go to the shell.2 years ago
AnthonyFerr
AnthonyFerr
shared a Post
2 years ago
How can I obfuscate code and API keys for python scripts? I've seen people post repls that have unreadable source/keys that must be encrypted. Is it t
ObiVibKenobi
ObiVibKenobi
@AnthonyFerr There’s a few ways you can do this. The BEST WAY IS TO PUT IT IN A .env FILE! All your tokens will be hidden there, since repl.it is epic Based on what your using, if .env doesn’t work: If you can’t do that, you can use these for git repositories: https://github.com/spwhitton/git-remote-gcrypt Or one of these: https://git-secret.io/, https://www.agwa.name/projects/git-crypt/, https://github.com/StackExchange/blackbox https://devcenter.heroku.com/articles/config-vars https://doc2 years ago
Coder100
Coder100
You should use .env files. https://docs.repl.it/repls/secret-keys they won't be able to be seen by anyone else except for you.2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
There are some encrypters like pycrypto or something, here's a link to help. https://stackoverflow.com/questions/27335726/how-do-i-encrypt-and-decrypt-a-string-in-python2 years ago
AnthonyFerr
AnthonyFerr
shared a Post
2 years ago
Is there any way to have the output from the console go to an html page using django or flask? I want to be able to use os.sys('clear') with it as wel
Coder100
Coder100
Sorry, that is not possible. The closest thing you can do is (in bash): python3 main.py > index.html and then serve index.html there afterward, but that is all predetermined code. Anyways, here are some JS tutorials: https://www.w3schools.com/js/DEFAULT.asp https://www.tutorialspoint.com/javascript/index.htm https://www.youtube.com/watch?v=Qqx_wzMmFeA2 years ago
AnthonyFerr
AnthonyFerr
shared a Post
2 years ago
This python script calculates the roots of a quadratic given the coefficients, if there are any roots. I have a growing list of python calculators, le
Quadratic Calculator
Python