Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Quamme Rhoden cqr

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am cqr on github.
  • I am chrisrhoden (https://keybase.io/chrisrhoden) on keybase.
  • I have a public key ASAQaXiBdmN0Pq3M6X_pWX5Rp1UPOsJHh69JT_1umPYmxwo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am chrisrhoden on github.
  • I am chrisrhoden (https://keybase.io/chrisrhoden) on keybase.
  • I have a public key whose fingerprint is 03EE 43AE B686 4F77 1C70 4D90 51C0 52E7 D55D 8F19

To claim this, I am signing this object:

@cqr
cqr / flow.json
Created Apr 21, 2012
Untitled_0
View flow.json
{
"nodes": [
{
"title": "Timeline",
"icon": "images/icons/twitter_64.png",
"top": 87,
"left": 156,
"compID": "twitter",
"username": "elasticio",
"backFill": "15",
@cqr
cqr / build_settings.yml
Created Sep 28, 2011 — forked from qwzybug/build_settings.yml
Ruby script to build, tag, archive, and distribute an app and its dSYM file, in one fell swoop.
View build_settings.yml
TF_API_TOKEN: <your TestFlight API token>
TF_TEAM_TOKEN: <your TestFlight team token>
TF_DISTRIBUTION: <name of distribution list to notify>
DEVELOPER_PREFIX: <path to your developer directory, e.g., /Developer-4.2>
ARCHIVE_DIRECTORY: <path for saving archived builds>
DEVELOPER_NAME: <keychain name of developer certificate>
PROVISONING_PROFILE: <full path to distribution provisioning profile>
View gist:1025910
def each(&block)
master.each(&block)
end
View gist:1025909
def each(&block)
master.each(&block)
end
@cqr
cqr / gist:989680
Created May 24, 2011
Object#within?
View gist:989680
class Object
def within?(range)
range.cover?(self)
end
end
View anon
an anon gist
@cqr
cqr / post-receive
Created Feb 25, 2011
A starting point for building your own post-receive hook in Ruby
View post-receive
#!/usr/bin/env ruby
require 'rubygems'
require 'grit'
repo = Grit::Repo.new(File.join(File.dirname(__FILE__), '..','..'))
while msg = gets
old_sha, new_sha, ref = msg.split(' ', 3)
commit = repo.commit(new_sha)
View node.js
/*
* BEGIN Custom patches
*/
// This is the content type I will return on most of my requests,
// so I'm adding it as the default. I can overwrite the headers
// to change it if necessary on the individual handlers.
http.ServerResponse.prototype.headers = ["Content-Type: text/html"];
http.ServerResponse.prototype.writeHeadArray = function(statusCode){