Skip to content

Instantly share code, notes, and snippets.

View faulkner's full-sized avatar

Chris Faulkner faulkner

  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am faulkner on github.
  • I am faulkner (https://keybase.io/faulkner) on keybase.
  • I have a public key ASBL49lktVtJ9icXahj64_lfySWjoOSOyPq01F70Agj0dAo

To claim this, I am signing this object:

@faulkner
faulkner / autoenv.sh
Created July 2, 2012 01:59
A few bash functions for autoenv
# based on https://github.com/kennethreitz/autoenv/wiki/Cookbook
# using virtualenvwrapper?
use_env() {
if [ -n "$1" ]; then
venv="$1"
else
venv=$(basename `pwd`)
fi
if [[ `basename "${VIRTUAL_ENV:t}"` != "$venv" ]]; then
@faulkner
faulkner / index.html
Created June 24, 2012 15:57
Cubism not bubbling up left/right arrow key events?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cubism.js</title>
<style>
@import url(//fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700);
@import url(http://square.github.com/cubism/style.css);
#example { min-height: 155px; }
</style>
@faulkner
faulkner / github.com.js
Created December 4, 2011 21:34
dotjs: because github search doesn't have a crap filter.
if (window.location.pathname === '/search') {
/* You pushed an empty repo? Cool story, bro. */
$('.result:contains(" 0 Bytes")').hide();
}