Skip to content

Instantly share code, notes, and snippets.

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()
@QuicklyRainbow
QuicklyRainbow / Readme
Created March 14, 2015 03:12
Jpeg Repost Simulator
#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
@QuicklyRainbow
QuicklyRainbow / phoneticAlphabet.py
Created December 7, 2015 10:16
Quick tool to help me out with learning the phonetic alphabet
""" Converts spoken phrase to easily understood phonetic letter makeup """
import sys
alphabet = {
'a': 'Alpha',
'b': 'Bravo',
'c': 'Charlie',
'd': 'Delta',
'e': 'Echo',
#!/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))