Skip to content

Instantly share code, notes, and snippets.

View eebmagic's full-sized avatar

Everett Bolton eebmagic

View GitHub Profile
############################################################################################################################
#### MY ALIASES ####
alias youtube-dl-mp3='youtube-dl -x --audio-format mp3 '
alias l='ls -1'
alias md5='md5 -r'
alias usg='du -chd 1 |sort -h'
alias count='ls . | wc -l'
alias counttypes='python3 ~/pythonTools/type_counts/counttypes'
alias typecounts='counttypes '
alias typecount='counttypes '
set tabstop=4 shiftwidth=4 expandtab
syntax on
nnoremap ; :
" Use tab key for indenting visual blocks
vnoremap <Tab> >gv
vnoremap <S-Tab> <gv
" duplicate highlighted selection under itself
with open('homeworks.txt') as file:
content = file.read().strip()
homeworks = [int(x) for x in content.split('\n')]
with open('tests.txt') as file:
content = file.read().strip()
tests = [int(x) for x in content.split('\n')]
# Fill 100s for remaining grades