Skip to content

Instantly share code, notes, and snippets.

View bdotdub's full-sized avatar

Benny Wong bdotdub

View GitHub Profile
@bdotdub
bdotdub / README.md
Created January 25, 2013 00:32 — forked from mbostock/.block

This stacked area chart is constructed from a TSV file storing the market share of several popular web browsers over the last year. Data is from Clicky Web Analytics. The chart employs conventional margins and a number of D3 features:

# https://api.instagram.com/v1/users/95987/media/recent?access_token=MY.ACCESS.TOKEN
{
"pagination": {
"next_url": "https://api.instagram.com/v1/users/95987/media/recent?access_token=MY.ACCESS.TOKEN",
"next_max_id": "232644831_95987"
},
"meta": {
"code": 200
},
// http://instagr.am/p/FeYSU
// - http://instagr.am/p/FeYSU/media/?size=l
// - http://instagr.am/p/FeYSU/media/?size=m
// - http://instagr.am/p/FeYSU/media/?size=t
exports.fetcher = function() {
this.imageUrls = function(url, callback) {
callback(null, {
default: url + "/media/?size=l",
large: url + "/media/?size=l",
@bdotdub
bdotdub / user_decorator.rb
Created October 16, 2011 16:27
Testing draper decorators
# app/decorators/user_decorator.rb
class UserDecorator < ApplicationDecorator
decorates :user
end
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@bdotdub
bdotdub / Questions
Created September 6, 2011 22:05
RubyShift
Day job: Cofounder of a [TechStars NYC W2011](http://techstars.org/) company building [4squareAnd7YearsAgo](http://4squareAnd7YearsAgo.com/) and [PastPosts](http://pastposts.com/), as well as maintainer of iPhone app [Exit Strategy NYC](http://exitstrategynyc.com/)
Favorite Ruby project: Homebrew ... just an awesome utility!
Open Source contributions: Biggest open source contribution is [Hummingbird](http://github.com/mnutt/hummingbird) where my former coworker [Michael Nutt](http://github.com/mnutt) created a real time HTML5 [insert buzz word] [buzz word] websocket enabled web traffic visualization. Have also created node.js modules for the Aviary API, Rubygem for the foursquare API, and a bunch of others!
How do you use GitHub: Originally to keep track of my own repos and follow others, but have just switched over to using it for our company and really excited to do it!
@bdotdub
bdotdub / Questions
Created September 6, 2011 22:02
GOTO Amsterdam
Day job: Cofounder of a [TechStars NYC W2011](http://techstars.org/) company building [4squareAnd7YearsAgo](http://4squareAnd7YearsAgo.com/) and [PastPosts](http://pastposts.com/), as well as maintainer of iPhone app [Exit Strategy NYC](http://exitstrategynyc.com/)
What is your language of choice: Ruby
Open Source contributions: Biggest open source contribution is [Hummingbird](http://github.com/mnutt/hummingbird) where my former coworker [Michael Nutt](http://github.com/mnutt) created a real time HTML5 [insert buzz word] [buzz word] websocket enabled web traffic visualization. Have also created node.js modules for the Aviary API, Rubygem for the foursquare API, and a bunch of others!
How do you use GitHub: Originally to keep track of my own repos and follow others, but have just switched over to using it for our company and really excited to do it!
@bdotdub
bdotdub / gist:1189576
Created September 2, 2011 19:19 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
for (var i = 0; i < 10; ++i) {
var callback = function(num) {
return function() {
console.log(num);
}
}
setTimeout(callback(i), i * 1000)
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.