- Basic syntax
- Variables types:
- Variable declaration:
var
,let
andconst
float
,integer
,string
,boolean
,null
,undefined
- Variable declaration:
- Operators:
- Variables types:
- Arithmetic:
+, -, *, /, %, ++, --
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
// 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
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) |
$> 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
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
sudo apt-get install clinfo ocl-icd-opencl-dev mesa-opencl-icd |
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
#!/usr/bin/env bash | |
checksum() { | |
FILE=$1 | |
if [ "$ALGO" = "SHA1" ]; then | |
sha1sum $FILE | |
else | |
md5sum $FILE | |
fi | |
} |
NewerOlder