- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
#!/usr/bin/env python | |
"""Compare two aligned images of the same size. | |
Usage: python compare.py first-image second-image | |
""" | |
import sys | |
from scipy.misc import imread | |
from scipy.linalg import norm |
#!/usr/bin/env python | |
""" | |
twitter_archiver.py written by Jehiah Czebotar 2010 <jehiah@gmail.com> http://jehiah.cz/ | |
this uses the great 'python twitter tools' library by Mike Verdone | |
http://mike.verdone.ca/twitter/ | |
usage: | |
$ pip install twitter |
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |
#!/usr/bin/env python | |
''' | |
I frequently look up word meanings online. | |
It's kind of a hassle to fire up the browser, and search online after a while. | |
It's a lot easier for me to do it from the command line, when my terminal is one keyboard shortcut away. | |
I wrote this script using the wordnik api that does just that. | |
I suggest you put this somewhere in your PATH, make it executable. | |
Make sure you get a Wornik API key at http://developer.wordnik.com/ |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
/* | |
~~ Snowball Poem ~~ | |
Snowball (also called a Chaterism): A poem in which each line is a single word, | |
and each successive word is one letter longer. One of the constrained writing | |
techniques invented by the Oulipo (Workshop of Potential Literature). | |
~~ Program Description ~~ | |
This program takes input from the file "input-raw.txt". It examines the file for |
p=`pwd` | |
for dirname in `find . -type d -maxdepth 1 -mindepth 1` | |
do | |
if [ -d $dirname/.git ] | |
then | |
cd $dirname | |
echo `pwd` | |
git pull origin master | |
fi | |
cd $p |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"