Linux mirror - here
More about me - here
I like infrastructure.
Telegram scanner bot for cryptokitties. Meow
License: MIT License
Instead of getting the output as print
it's recommended to use the Python logging
The lines highlighted could be turned into:
except Exception:
log.exception("Error creating database")
Line 32 in 022acee
Moving the code from the root directory and into a subdir, and then adding a setup.py
file that describes this.
http://python-packaging.readthedocs.io/en/latest/minimal.html
Since you are inserting raw text in raw statements, a user can exploit your bot with an SQL injection.
Sanitize your SQL statements - use prepared statements and the ?
placeholder to insert user input - and additionally validate the input before inserting it.
For GitHub, Travis CI is the recommended
Set up a basic CI pipeline that:
pip install .
This is the "Hello World" verion of a CI system, but requires you to read up a bit on getting the basics running.
A minimal Travis setup looks like:
language: python
python:
- 3.6
- nightly
script:
- pip install -r requirements.txt
- pip install .
d4046c6 fixed the badly commited files, but not the root cause.
Add a .gitignore and make sure pycache files won't end up commited again.
There's no need to have a multiline code block in the middle of a statement, move it to the beginning of the file and give it a name, calling that instead.
Line 19 in 022acee
The python requirements should be in a requirements.txt that pip
can read and install.
A few of these nested loops are pretty nastily deep, and the inner layers would benefit from being split out into separate functions.
CryptoKitties/modules/broadcast.py
Line 86 in 022acee
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.