Skip to content

Instantly share code, notes, and snippets.

View danroberts's full-sized avatar

danroberts

View GitHub Profile
@danroberts
danroberts / README.md
Last active October 23, 2015 22:44 — forked from mbostock/.block
Grouped Bar Chart with Crossfilter

This is a fork of mbostock's grouped bar chart example, to demonstrate how to use crossfilter to produce the same result.

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:

@danroberts
danroberts / backbone.$super.js
Created October 11, 2012 20:53 — forked from borestad/backbone.$super.js
super call within Backbone.js - adding multiple levels of inheritance.
var $super = function(funcName){
funcName = funcName || 'initialize';
// _.bindAll messes upp constructor
// TODO: Add more tests with multiple inheritance
var _super = this.constructor.__super__ || this.__proto__.constructor.__super__;
return _super[funcName].apply(this, _.rest(arguments));
},
_$super = function(funcName){
funcName = funcName || 'initialize';
@danroberts
danroberts / po2json.js
Created May 31, 2012 21:27 — forked from zaach/po2json.js
PO parser from http://jsgettext.berlios.de/lib/Gettext.js adapted for Node.js and modified to be more like po2json.pl
#!/usr/bin/env node
/*
PO parser from http://jsgettext.berlios.de/lib/Gettext.js
adapted for Node.js and modified to be more like po2json.pl
- Zach Carter <[email protected]>
Further adapted to be used inside a node.js environment instead of the command line. Import with a require statement:
var po2json = require('po2json.js')
po2json.parse('filename', function(result) {