Skip to content

Instantly share code, notes, and snippets.

Report on Proceedings and Recommendations from the Citizens’ Jury on Transit
Prepared for Hamilton City Council
by Tim L. Dobbie Consulting Ltd. and Associates
Date: February 12, 2016
Tim L. Dobbie Consluting Ltd.
TABLE OF CONTENTS
1. Introduction . . .
@quandyfactory
quandyfactory / Googlebeatbox.py
Created November 30, 2010 12:30
Google Beatbox UI.
#!/usr/bin/env python
__title__ = 'Google Beatbox GUI'
__version__ = 0.1
"""
This program provides a simple GUI interface to create Google Beatbox beats.
Original idea here: http://news.ycombinator.com/item?id=1952356
Drum Sounds defined: http://news.ycombinator.com/item?id=1952531
"""
@quandyfactory
quandyfactory / police board email chain
Created June 26, 2013 17:20
Chain of emails including Hamilton Police Board Chair Nancy DiGregorio, Police Board lawyer Lynda Bordeleau and assistant City lawyer Ron Sabo on the legality of Council appointing a Councillor to the Board on a temporary basis.
From: Merulla, Sam
Sent: Wednesday, June 26, 2013 12:55 PM
To: Bishop, Kathy; DL - Council Only
Cc: DL - SMT Only
Subject: Re: City of Hamilton Temporary Appointment to the Police Services Board,
Your Reference: HPB008
Please include this item under correspondence for tonight's Council meeting. I will
be requesting a formal retraction and apology for the irresponsible suggestion that
Media Release
Police Chief Glenn De Caire Retires Effective
January 17, 2016
For immediate release: December 18, 2015
Hamilton, ON
The members of the Hamilton Police Service continue to perform with excellence and professionalism and I remain extremely proud of the efforts that each member has put forth in delivering community based police services to our diverse communities across Hamilton. Our partnerships in the community are strong and we are working together to enhance community safety, revitalize the city, encourage investment and growth and we, as a community, are doing amazing work together.
@quandyfactory
quandyfactory / fiveoclocksomewhere.py
Last active December 16, 2015 10:39
It's 5 O'Clock Somewhere: This script tells you the nearest time zone in which it's after 5 o'clock PM.
#!/usr/bin/env python
"""This script tells you the nearest time zone in which it's after 5 o'clock PM."""
import datetime
def get_beer_timezone():
now = datetime.datetime.today()
print("The curent time is %s." % (str(now)[11:-7]))
@quandyfactory
quandyfactory / permits.py
Last active December 12, 2015 06:19
Fetches geocode lat and lng for Hamilton building permits
import xlrd
import json
import urllib
path = 'permits.xls'
outfile = 'permits.csv'
template = 'http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address='
def get_data(path=path):
"""Gets the records from the excel file"""
#!/usr/bin/env python
from Tkinter import *
from random import shuffle
things = [
'Make some tea',
'Do some pushups',
'Do some situps',
'Go to the bathroom',
@quandyfactory
quandyfactory / Red Fedora
Created November 2, 2012 15:30
A very cheesy parody of Red Barchetta.
My uncle has a country place
That no one knows about
It used to be a server farm
Before the Data Law
And on Sundays I elude the Eyes
And hop the Turbine Freight
To Far outside the Lockdown Web
Where my white-haired uncle waits
data = """-0.0118|ct5370001_01|Ward: 6, CT: 5370001.01, Area: 5.5, Density: 385, 2006: 2143, 2011: 2118, Change: -1.18%|-79.829957 43.206309,-79.829124 43.206103,-79.828842 43.206028,-79.827789 43.205756,-79.827715 43.205737,-79.826527 43.205437,-79.826062 43.205315,-79.825339 43.205133,-79.825204 43.205099,-79.824347 43.204883,-79.824168 43.204836,-79.824028 43.204799,-79.823036 43.204546,-79.822693 43.204461,-79.822129 43.204320,-79.821639 43.204198,-79.821162 43.204076,-79.820934 43.204016,-79.820890 43.204005,-79.820857 43.203997,-79.820787 43.203970,-79.820714 43.203947,-79.820638 43.203927,-79.820562 43.203912,-79.820484 43.203901,-79.820404 43.203893,-79.820325 43.203889,-79.820245 43.203891,-79.820166 43.203895,-79.820087 43.203904,-79.819918 43.203935,-79.819737 43.203935,-79.819616 43.203772,-79.819557 43.203663,-79.819462 43.203473,-79.819428 43.203347,-79.819394 43.203184,-79.819360 43.203031,-79.819388 43.202860,-79.819415 43.202716,-79.819455 43.202573,-79.819507 43.202429,-79.819586 43.202151,-
@quandyfactory
quandyfactory / calc.py
Created February 1, 2012 12:16
A silly little script that evaluates command line mathematical expressions.
#!/usr/bin/env python
"""A silly little script that evaluates command line mathematical expressions."""
from __future__ import division
import sys
if __name__ == '__main__':
expression = ' '.join(sys.argv[1:])