Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import os
import urllib2
from PIL import Image
BASE = 'http://imgs.xkcd.com/clickdrag'
N, E, S, W = [14,48,25,33]
function freeze() {
LAYOUT=`tmux list-windows -F "#{window_active} #{window_layout}" | grep "^1" | cut -d " " -f 2`
CWD=`pwd`
echo "windows:"
echo " - name: \"${NAME:-NAME}\""
echo " layout: \"${LAYOUT}\""
echo " root: \"${CWD}\""
echo " filters:"
echo " before: \"pwd\""
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
_check_rakefile() {
tasks=$(rake -T 2>/dev/null | cut -d " " -f 2) || return
COMPREPLY=($(compgen -W "$tasks" -- ${COMP_WORDS[COMP_CWORD]}))
}
complete -F _check_rakefile -o default rake
#!/usr/bin/python
#-*- coding: utf-8 -*-
import glob
import logging
import os
import shutil
import sys

Keybase proof

I hereby claim:

  • I am gardiner on github.
  • I am oletrenner (https://keybase.io/oletrenner) on keybase.
  • I have a public key ASDvxmF21xfBNiXYtMC4K5318VMpJHsElRenBEjeRcNxSQo

To claim this, I am signing this object: