I hereby claim:
- I am cbartlett on github.
- I am cbartlett (https://keybase.io/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:
# lib/core_ext/hash.rb | |
module CoreExt | |
module Hash | |
def deep_fetch(*keys, &default) | |
keys.inject(self) do |hsh, key| | |
hsh.fetch(key, &(proc { |*args| return default.call(*args) } if default)) | |
end | |
end | |
end |
// 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 http://www.appsbynight.com |
I hereby claim:
To claim this, I am signing this object:
web: node web.js |
# Bit.ly API implementation - thanks to Richard Johansso http://gist.github.com/112191 | |
require 'httparty' | |
class Api::Bitly | |
include HTTParty | |
base_uri 'api.bit.ly' | |
format :json | |
# Usage: Bitly.shorten("http://example.com") | |
def self.shorten(url) |
=== Things to do in NYC with a ~7 Year Old === | |
Brooklyn | |
Williamsburg | |
- McCarren Park | |
- Pool | |
- Brooklyn Flea - Sunday 10-4 | |
- East River State Park | |
- Brooklyn Bowl - Sat/Sun 12-6 | |
- Leonard Library - Mon-Sun 10-6 |
C-Suite: Executives of a company with titles that start with "Chief" | |
C$: Colin | |
PFA: Please Find Attached | |
TAT: Turn Around Time |
$ ruby imdb-bot.rb http://www.imdb.com/title/tt0106856/ | |
Detected IMDB link for movie "Falling Down". | |
[Can I Stream It?](http://www.canistream.it/search/movie/Falling%20Down) |
$ 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) |
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) | |
end |