Skip to content

Instantly share code, notes, and snippets.

View christaggart's full-sized avatar

Chris Taggart christaggart

View GitHub Profile
"Elon Musk said he looks at 2 things before embarking on anything. 1) Can it be done? (That by doing it we are not breaking any laws of physics) 2) Is it important? Is it important enough for humanity that it would make a major dent. If the answers to both the questions is "Yes" then he goes ahead with it."
@christaggart
christaggart / gist:3677737
Created September 8, 2012 17:37
KeyError at /shop/checkout/ 'stripe_token'
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/shop/checkout/
Django Version: 1.4.1
Python Version: 2.7.1
Installed Applications:
['mezzanine.boot',
@christaggart
christaggart / gist:3493435
Created August 27, 2012 23:42
osm2pgsql make
/usr/local/bin/protoc-c --proto_path=protobuf --c_out=. protobuf/fileformat.proto
/usr/local/bin/protoc-c --proto_path=protobuf --c_out=. protobuf/osmformat.proto
make all-recursive
g++ -DHAVE_CONFIG_H -I. -D_THREAD_SAFE -pthread -I/usr/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.5/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pgsql"' -Igeos-fallback -g -O2 -MT build_geometry.o -MD -MP -MF .deps/build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp
mv -f .deps/build_geometry.Tpo .deps/build_geometry.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -D_THREAD_SAFE -pthread -I/usr/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.5/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pgsql"' -Igeos-fallback -D_THREAD_SAFE -pthread -I/usr/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.5/include -I/usr/local/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pg
.primary_button { -moz-box-shadow:inset 0px 1px 0px 0px #fbafe3; -webkit-box-shadow:inset 0px 1px 0px 0px #fbafe3; box-shadow:inset 0px 1px 0px 0px #fbafe3;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ef61a9), color-stop(1, #bf3179) );
background:-moz-linear-gradient( center top, #ef61a9 5%, #bf3179 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ef61a9', endColorstr='#bf3179');
background-color:#ef61a9; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px;
border:1px solid #ff88ca; display:inline-block; color:#ffffff; font-family:arial; font-size:16px; font-weight:normal; padding:13px 10px; text-decoration:none; text-shadow:0px 1px 0px #c70067; cursor:pointer; }
.primary_button:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dd579a), color-stop(1, #b32d70) );
ba
var gOttawaminX = -8470000; //around fitzroy harbour
var gOttawaminY =5650000; // down to around oxford station
var gOttawamaxX = -8350000; // about 10km to the east of casselman
var gOttawamaxY = 5700000; // up to about wakefield/north of gatineau park
//
// CREATE CUSTOM LOADING INDICATOR
//
var indWin = null;
var actInd = null;
function showIndicator()
{