What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-06 18:57:04
fast api postgres
from logging.config import fileConfigfrom sqlalchemy import engine_from_configfrom sqlalchemy import poolfrom alembic import context# this is the Alembic Config object, which provides# access to the values within the .ini file in use.config = context.conf... Add solution -
Python 2021-10-06 12:24:02
how to lag python
Evil! Anyway... print(9**9) is easily manageable for python. On a faily fast computer, it will only take a few milliseconds for the output to appear: 387420489. Check it against a calculator. Not bad. So let's punish our interpreter properly. print(9*... Add solution -
Other 2021-10-06 06:36:04
yaml understanding
--- # document start # Comments in YAML look like this. ################ # SCALAR TYPES # ################ # Our root object (which continues for the entire document) will be a map, # which is equivalent to a dictionary, hash or object in other langua... Add solution -
Shell/Bash 2021-10-04 08:03:02
how to host a discord bot on a raspberry pi
#how to create and host a Discord Bot on a rasberry pi 1. Navigate to the Discord Developer Console 2. Click "New App" 3. Give it a name, and then click "Create App" 4. Click "Create a Bot User" 5. Keep note of the Token, as... Add solution -
Python 2021-09-28 05:16:04
mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported
You have probably installed mysql-connector instead of mysql-connector-python. So you need to install it again for python3: pip3 install mysql-connector-python Add solution -
Python 2021-09-27 02:07:05
fatal error: Python.h: No such file or directory
For apt (Ubuntu, Debian...): sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x installs For yum (CentOS, RHEL...): sudo yum install python-devel # for python2.x installs sudo yum install pytho... Add solution -
Python 2021-09-26 10:03:04
python' is not recognized as an internal
There is no python3.exe file, that is why it fails. Try: py instead. py is just a launcher for python.exe. If you have more than one python versions installed on your machine (2.x, 3.x) you can specify what version of python to launch by py -2 or py -3 Add solution -
Shell/Bash 2021-09-24 09:07:02
npm dotenv
# For python users only pip install python-dotenv Add solution
Best helpers
Ranking is empty