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 nocompatible " be iMproved, required | |
filetype off " required | |
""""""""""" | |
" PLUGINS " | |
""""""""""" | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |
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
#Repost Compression Simulator | |
Images reposted on the internet are recompressed each time, reducing their quality over time. This shows how easily the quality can degrade over time. Keep in mind that this will replace the original file. | |
### Usage | |
Example : sh jpger.sh file.jpg 10 40 | |
### Arguments | |
- First argument should be input file | |
- Second argument is number of times to recompress the file | |
- Third argument is quality of compression.. To simulate the internet you probably want a value of about 40 |
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
""" Converts spoken phrase to easily understood phonetic letter makeup """ | |
import sys | |
alphabet = { | |
'a': 'Alpha', | |
'b': 'Bravo', | |
'c': 'Charlie', | |
'd': 'Delta', | |
'e': 'Echo', |
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
#!/usr/bin/env python | |
# Prints the time as words, rounded to five minutes | |
# Intended for use with bitbar | |
import datetime | |
from num2words import num2words | |
def round_to_nearest(x, base=5): | |
return int(base * round(float(x)/base)) |