Skip to content

Instantly share code, notes, and snippets.

View cqr's full-sized avatar

Chris Quamme Rhoden cqr

View GitHub Profile

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:

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 April 21, 2012 15:23
Untitled_0
{
"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 September 28, 2011 16:25 — forked from qwzybug/build_settings.yml
Ruby script to build, tag, archive, and distribute an app and its dSYM file, in one fell swoop.
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>
def each(&block)
master.each(&block)
end
def each(&block)
master.each(&block)
end
@cqr
cqr / gist:989680
Created May 24, 2011 21:02
Object#within?
class Object
def within?(range)
range.cover?(self)
end
end
@cqr
cqr / anon
Created May 13, 2011 21:52
Anon
an anon gist
@cqr
cqr / post-receive
Created February 25, 2011 00:33
A starting point for building your own post-receive hook in Ruby
#!/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)
@cqr
cqr / node.js
Created October 12, 2010 14:55 — forked from joerussbowman/node.js header as array hack
arrayhack.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){