Skip to content

Instantly share code, notes, and snippets.

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:

#!/usr/bin/python
#-*- coding: utf-8 -*-
import glob
import logging
import os
import shutil
import sys
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
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\""
#!/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]
@gardiner
gardiner / Rakefile.rb
Created May 29, 2012 19:50
Rakefile to auto-rebuild haml
require 'rake/clean'
include Rake::DSL
task :default => [:watch]
HAML = FileList['*.haml']
HTML = HAML.ext('html')
CLEAN.include HTML
@gardiner
gardiner / gist:1635301
Created January 18, 2012 20:19
Rakefile to build, preview and auto-rebuild haml+compass
require 'rake/clean'
include Rake::DSL
task :default => [:watch]
HAML = FileList['**/*.haml']
HTML = HAML.ext('html')
SCSS = FileList['**/scss/*.scss']
CSS = SCSS.gsub('scss', 'css').ext('css')
#!/usr/bin/python
from BCBio import GFF
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import os
import pickle
import string
from BCBio import GFF
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import os
import pickle
import string
from pprint import pprint
https://gist.github.com/gists/new