Skip to content

Instantly share code, notes, and snippets.

@phillbaker
phillbaker / gist:2211792
Created March 27, 2012 02:16
Expensify Git reflog (git log --pretty=format:'%h @%an (%ad): %s')
8972dbe, 2012-03-25 23:44:55: Initial commit | <- API? I love APIs. It's almost midnight, better knock this out.
54793e3, 2012-03-25 23:50:25: Check authToken | <- Deprecated? White-label? I thought that was Walmart...
a1deaad, 2012-03-26 00:07:44: Separate files, add Google CDN jQuery | <- Okay, add some php and js and it'll just fall into place. Like that problem set...
f14d2d2, 2012-03-26 00:33:58: Add jquery ajax post call (CORS?)...whoops it's a GET to a different URL | <- Ughrufmph. I know this isn't going to work...what?
9fb8d58, 2012-03-26 02:00:11: Authtoken with hardcoded php local proxy |
87df47a, 2012-03-26 02:13:49: Add cross-domain proxy; returns success |
4b4893a, 2012-03-26 02:15:37: Clean up wrong code |
f820
@phillbaker
phillbaker / app.js
Created March 21, 2012 15:30
Phonegap-JQuery app boilerplate
(function(){
// Geo namespace
var App;
if (typeof exports !== 'undefined') {
App = exports;
} else {
App = this.App = {};
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!--
This is an example that shows how to create an application that uses
an embedded sqlite database in a mobile device (iphone,ipod,ipad,android using phonegap, jquery
and sqlite.
@phillbaker
phillbaker / ThreadPool.rb
Created January 23, 2011 19:04
Basic abstracted structure of this scraper.
#
# This file is part of ThreadPool, a jruby or ruby-based
# thread pool manager.
# Copyright (C) 2009,2010 Daniel Bush
# This program is distributed under the terms of the MIT
# license.
# A copy of the license is
# enclosed with this project in the file LICENSE.
#
#
@phillbaker
phillbaker / gist:631291
Created October 17, 2010 21:04
rapidsms_python2-5.patch
From 787dd8c55a4cee7fdfdbf509e7b3cac109504fe2 Mon Sep 17 00:00:00 2001
From: pbaker <[email protected]>
Date: Sun, 3 Oct 2010 23:35:48 -0400
Subject: [PATCH 1/3] *nix-based kludge to workaround absence of ignore_patterns in python 2.5, only appeared in 2.6
---
lib/rapidsms/management/commands/startproject.py | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/lib/rapidsms/management/commands/startproject.py b/lib/rapidsms/management/commands/startproject.py