Skip to content

Instantly share code, notes, and snippets.

@x3ro
x3ro / README.md
Created November 3, 2012 00:40 — forked from mbostock/.block
Donut Chart

This donut chart is constructed from a CSV file storing the populations of various age groups. The chart employs a number of D3 features:

@x3ro
x3ro / net_http_debug.rb
Created May 2, 2012 17:16 — forked from kaiwren/net_http_debug.rb
Enable debug for all Ruby HTTP requests
require 'net/http'
module Net
class HTTP
def self.enable_debug!
class << self
alias_method :__new__, :new
def new(*args, &blk)
instance = __new__(*args, &blk)
instance.set_debug_output($stderr)
instance