Skip to content

Instantly share code, notes, and snippets.


Colin Bartlett cbartlett

View GitHub Profile
View gist:4064220
singlekey = true
View gist:4253907
def find_business_by_tel(what, filter=nil, page=1, page_length=40)
what = what.gsub(/\D/, '')#keep only digital caracteres
return find_business(what, 'canada', filter, page, page_length)
cbartlett / gist:4255000
Created Dec 11, 2012
automating rebase interactive
View gist:4255000
$ git commit -m 'fixup! eef2f127e9f'
(Where eef2f127e9f is the sha1 of the commit you want to fix up into)
$ git rebase -i head~10
(Where 10 is the number of commits back you need to go)
View imdb-bot.rb
$ ruby imdb-bot.rb
Detected IMDB link for movie "Falling Down".
[Can I Stream It?](
cbartlett / gist:5762084
Created Jun 12, 2013
The Andrew Stinger Dictionary
View gist:5762084
C-Suite: Executives of a company with titles that start with "Chief"
C$: Colin
PFA: Please Find Attached
TAT: Turn Around Time
View NYC-Kid-Stuff
=== Things to do in NYC with a ~7 Year Old ===
- McCarren Park
- Pool
- Brooklyn Flea - Sunday 10-4
- East River State Park
- Brooklyn Bowl - Sat/Sun 12-6
- Leonard Library - Mon-Sun 10-6
View bitly.rb
# API implementation - thanks to Richard Johansso
require 'httparty'
class Api::Bitly
include HTTParty
base_uri ''
format :json
# Usage: Bitly.shorten("")
def self.shorten(url)
cbartlett / Procfile
Created Feb 17, 2014
Easiest static site hosting on Heroku
View Procfile
web: node web.js

Keybase proof

I hereby claim:

  • I am cbartlett on github.
  • I am cbartlett ( on keybase.
  • I have the public key with fingerprint 4180 AF08 DF39 0D92 7A10  6075 0511 671C D8E3 3B47

To claim this, I am signing this object:

View Create iOS Icons.jsx
// Photoshop Script to Create iPhone Icons from iTunesArtwork
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones