Skip to content

Instantly share code, notes, and snippets.

View jkeesh's full-sized avatar

Jeremy Keeshin jkeesh

View GitHub Profile
@jkeesh
jkeesh / uber_report.py
Created January 11, 2015 01:32
uber reporting
import csv
import sys
import pprint
FIRST_ROW = 6
DATE_INDEX = 1
EMAIL_INDEX = 7
FARE_INDEX = 14
@jkeesh
jkeesh / lexicon.js
Created January 4, 2014 08:13
proof of concept lexicon
function Lexicon(file){
this.data = {
'a': {
'b': {
's': {}
}
}
};
}
@jkeesh
jkeesh / lookandsay.py
Created September 29, 2013 02:22
Look and Say
import sys
SENTINEL = -1
def lookandsay(num):
"""Return the look and say version of num."""
num = str(num)
@jkeesh
jkeesh / indenting.js
Last active January 26, 2017 01:45
New indenting style for beginners
function start()
{
if(frontIsClear())
{
move();
}
else
{
putBall();
}
@jkeesh
jkeesh / create_repo.py
Last active January 1, 2024 00:31
Python script to create a remote git repo that checks out the latest commit with a post-receive hook
#
# This script creates a repository and sets it up with a post receive
# hook that checks out the code to the desired directory.
#
# Really nice for setting up an easy way to push code to a remote
# server without lots of overhead.
#
# After running this script simply add a remote locally like
#
# git remote add web ssh://you@server/path/to/repo.git