Skip to content

Instantly share code, notes, and snippets.

View zacharyvoase's full-sized avatar

Zack Voase zacharyvoase

View GitHub Profile
@zacharyvoase
zacharyvoase / test.py
Created September 1, 2012 02:43 — forked from winhamwr/test.py
Nose generator tests example
from nose.tools import assert_equal
addition_cases = [
(
'2 + 2',
2,
2,
4
),
(
@zacharyvoase
zacharyvoase / pentypea.md
Created June 29, 2012 01:20 — forked from anonymous/gist:3014636
Pen type a

Project Update #27: The Storm For backers only, Posted by cw&t Hi backers!

First, for those of you still waiting for your pen(s), we're still on schedule. The schedule was posted a few updates ago (update #22). The 3 remaining batches are shipped from our manufacturer in China on July 7th (480 pens) July 23rd (480) August 7th (494)

In the last couple months, we fought hard to speed up production. We advanced more money and were promised ship dates by our manufacturer and none were met. In their eyes, delays were caused by us because we were so picky about the details, but the truth is we weren't asking for anything out of the ordinary. All we asked for was for them to follow the specifications in our drawings they agreed to on day one. They weren't able to meet the specifications, so they blamed production delays on little changes made during production to help make the pen more manufacturable.

@zacharyvoase
zacharyvoase / bbikes.sh
Created November 24, 2011 14:02 — forked from hmarr/bbikes.sh
Determine Barclays Bike availability via the command line
function bbikes {
location=${1:-$DEFAULT_BBIKE_LOCATION}
if [ -z $location ]; then
echo "usage: bbikes <location>"
echo "(you can also set a default location with DEFAULT_BBIKE_LOCATION)"
return 1
fi
url='https://web.barclayscyclehire.tfl.gov.uk/maps'
user_agent='Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)'
curl -sA "$user_agent" "$url" | grep ShowInfoB | grep -i "$location" | while read line; do
@zacharyvoase
zacharyvoase / pythonrc.py
Created May 4, 2011 13:31 — forked from benhodgson/pythonrc.py
Python startup file with completion, history and colored source browsing.
import inspect
import sys
def src(obj):
"""Read the source of an object in the interpreter."""
def highlight(source):
try:
import pygments
@zacharyvoase
zacharyvoase / jsonutils.py
Created November 11, 2010 10:20
JSONResponse for Django
# -*- coding: utf-8 -*-
import django.http
import simplejson as json
class JSONResponse(django.http.HttpResponse):
"""Represent a HTTP response with a Content-Type of 'application/json'.