- Basic syntax
- Variables types:
bool
,int
,float
,str
,byte
,complex
,None
- Conditionals:
if
,else
,elif
,for
,while
,match
- Variables types:
- Functions: simple use, and known what first class citizen is (concept)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "alt+q", | |
"command": "workbench.action.terminal.toggleTerminal", | |
"when": "terminal.active" | |
}, | |
{ | |
"key": "ctrl+shift+[BracketLeft]", | |
"command": "-workbench.action.terminal.toggleTerminal", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The commands must be executed in the order bellow! Not doing this may break the installation! | |
# Install python-software-properties if you get a 'command not found' | |
# sudo apt-get install python-software-properties | |
# In case you need to install setuptools | |
# Keep in mind that doing this may destroy pip installation of setuptools | |
# Instead you can pip install setuptools ... :) | |
# wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
checksum() { | |
FILE=$1 | |
if [ "$ALGO" = "SHA1" ]; then | |
sha1sum $FILE | |
else | |
md5sum $FILE | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip | |
# pipenv | |
poetry | |
sphinx | |
black | |
isort | |
flake8 | |
pylint | |
mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import gc | |
from concurrent.futures import ProcessPoolExecutor | |
from enum import Enum | |
from functools import partial, wraps | |
from itertools import chain | |
from multiprocessing import cpu_count | |
from time import perf_counter | |
from bs4 import BeautifulSoup as bsoup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import Label, Tk | |
import cv2 | |
import PIL | |
from PIL import Image, ImageTk | |
width, height = 800, 600 | |
cap = cv2.VideoCapture(0) | |
cap.set(cv2.CAP_PROP_FRAME_WIDTH, width) | |
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, height) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DEPENDENCIES | |
# LINUX INSTALLS! | |
# apt-get install transmission firefox python-dev python-pip | |
# PYTHON LIBS NEED IT! | |
# pip install requests beautifulsoup4 transmissionrpc pyopenssl ndg-httpsclient pyasn1 selenium | |
import requests as req | |
import transmissionrpc |
$> apt-get update && sudo apt-get upgrade
$> apt-get install -y make build-essential libssl-dev zlib1g-dev
$> apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
$> apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
$> wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz
NewerOlder