Skip to content

Instantly share code, notes, and snippets.

View cbowns's full-sized avatar

Christopher Bowns cbowns

View GitHub Profile
@cbowns
cbowns / gist:2491479
Created April 25, 2012 17:27
Public Spaces near Moscone West

WWDC 2012 sold out in a matter of hours. San Francisco has lots of privately owned public open spaces during business hours. WWDC Spaces is a place for us to organize a list of good ones near Moscone so developers looking to escape Moscone and non-attendees alike can gather. Leave a comment here and I'll add them to the wiki with links.

SPUR has a list of public spaces downtown. Have you been to one? Leave a comment with info about it! (I can’t visit all of these, though I’m going to try.)

  • 101 Second Street. Yelp.
  • NoiseBridge, 2169 Mission St (Mission between 17th and 18th).
@cbowns
cbowns / api_keys.rb
Created February 21, 2012 22:54
A script for Xcode 4.x to use API keys stored in ~/.api_keys and insert them into your app bundle’s Info.plist (instead of committing them to a repository)
# An API keys script written by Patrick Gibson (@patr1ck) and Christopher Bowns (@cbowns)
# This script sets API keys in your app's Info.plist from an .api_keys file you keep in your home directory (~/.api_keys)
# This allows you to not check API keys into your source control system,
# or for different developers to use different keys without needing to patch their working copies.
# Installation directions:
=begin
1. Create a Run Script build phase in your Xcode project before Compile Sources
2. Copy and paste this whole script in.
3. Create or modify your .api_keys file to hold your API keys
@cbowns
cbowns / gist:1115893
Created July 30, 2011 19:30
Patch for PageOne (http://globalmoxie.com/blog/page-one-safari-chrome-extension.shtml) to support more Slate.com articles
diff --git a/pageone/pageone.safariextension/singlepage_init.js b/pageone/pageone.safariextension/singlepage_init.js
index 6a13089..a709389 100644
--- a/pageone/pageone.safariextension/singlepage_init.js
+++ b/pageone/pageone.safariextension/singlepage_init.js
@@ -7,7 +7,7 @@ var GM_SPN = {
'theatlantic.com' : [ /\/archive\//, '/print/' ],
'gourmet.com' : 'printable=true',
'details.com' : 'printable=true',
- 'slate.com' : [ /(\/id\/\d+\/)($|pagenum\/\d+.*)/, '$1pagenum/all/'],
+ 'slate.com' : [ /(\/id\/\d+\/)($|pagenum\/\d+.*|\?from=rss)/, '$1pagenum/all/'],
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end