sudo pip install virtualenv
# Criando novo ambiente 'venv' (Executar na pasta raiz do seu projeto Python)
import argparse | |
parser = argparse.ArgumentParser(description='Process some Excel files and insert data into DB') | |
#--------------------------------------------------------- | |
# Excell Args | |
#--------------------------------------------------------- | |
parser.add_argument('-n', '--sheet_name', type=str, required=False, | |
help="name of the sheet to extract the data") |
#!/usr/bin/python3 | |
from openpyxl import load_workbook | |
workbook_file = load_workbook(filename="test_file_for_data_entry_automation.xlsx", | |
data_only=True, | |
read_only=True) | |
#!/usr/bin/python3 | |
from termcolor import colored | |
from time import sleep as wait_a_few_seconds_between_chords | |
scales = { | |
"C" : ["C" , "D" , "E" , "F" , "G" , "A" , "B" ], | |
"Db": ["Db", "Eb", "F" , "Gb", "Ab", "Bb", "C" ], | |
"D" : ["D" , "E" , "Gb", "G" , "A" , "B" , "Db"], | |
"Eb": ["Eb", "F" , "G" , "Ab", "Bb", "C" , "D" ], |
#!/usr/bin/python3 | |
from random import choice | |
from termcolor import colored | |
from time import sleep as wait_a_few_seconds_between_chords | |
######################################################## | |
# Feel free to comment/uncomment any key and quality | |
# that you want (or not) to practice... | |
######################################################## |
#!/usr/bin/python3 | |
from platform import system as platform_name | |
from os import system | |
import ctypes | |
platforms_dictionary = { | |
"Windows": { | |
"open" : 'ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door open", None, 0, None)', | |
"close": 'ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door closed", None, 0, None)' |
#!/usr/local/bin/python3 | |
from termcolor import colored | |
import clipboard | |
VIRTUALENV_NAME = input("Name for Virtual-Environment: ") | |
DJANGO_VERSION_TO_INSTALL = input("Django Version: ") | |
DJANGO_PROJECT_TO_CREATE = input("Project Name: ") |
########################################################################## | |
# Ubuntu: | |
########################################################################## | |
# create virtual env | |
virtualenv <NAME-OF-DESIRABLE-ENV-DIRECTORY> | |
or | |
python3 -m venv --without-pip <NAME-OF-DESIRABLE-ENV-DIRECTORY> | |
# activate virtual env |
[ | |
// go to beginning or end of the line | |
{ "keys": ["super+left"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["super+right"], "command": "move_to", "args": {"to": "eol", "extend": false} } | |
// move between empty lines with the alt key | |
{"keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false } }, | |
{"keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true } } |