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 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") |
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/python3 | |
from openpyxl import load_workbook | |
workbook_file = load_workbook(filename="test_file_for_data_entry_automation.xlsx", | |
data_only=True, | |
read_only=True) | |
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/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" ], |
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/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... | |
######################################################## |
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/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)' |
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/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: ") |
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
########################################################################## | |
# Ubuntu: | |
########################################################################## | |
# create virtual env | |
virtualenv <NAME-OF-DESIRABLE-ENV-DIRECTORY> | |
or | |
python3 -m venv --without-pip <NAME-OF-DESIRABLE-ENV-DIRECTORY> | |
# activate virtual env |
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
Show hidden characters
[ | |
// 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 } } |