This file contains hidden or 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
############################################################################################################################ | |
#### 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 ' |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
NewerOlder