Skip to content

Instantly share code, notes, and snippets.

View elsherbini's full-sized avatar

Joseph Elsherbini elsherbini

View GitHub Profile
@elsherbini
elsherbini / _.md
Created March 5, 2013 03:42
complex 1 (click the buttons)
@elsherbini
elsherbini / _.md
Created March 5, 2013 18:08
Quinone
State Response Predicted Difference
1 0.0526762956669499 0.0983417957543063 0.0456655000873564
2 0.116140051238258 0.109308795975831 0.00683125526242642
5 0.096722621902478 0.103514578497592 0.00679195659511383
4 0.0998322147651007 0.0942662765956997 0.00556593816940097
6 0.0888501742160279 0.0957795913389227 0.00692941712289478
8 0.102857142857143 0.0899265569700815 0.0129305858870613
9 0.114285714285714 0.0948882843180256 0.0193974299676887
11 0.166344294003868 0.139210777071404 0.0271335169324649
10 0.130327868852459 0.102019406504546 0.0283084623479134
@elsherbini
elsherbini / _.md
Created May 7, 2013 19:13
display some data
@elsherbini
elsherbini / _.md
Created May 8, 2013 05:12
copy-pastad barchart
@elsherbini
elsherbini / data.tsv
Last active December 17, 2015 06:19
Crossfilter example with chart wrapping
date boardingtime ipboardingtime edboardingtime
02220615 28.31666667 28.06666667 0.25
12220023 176.3833333 175.9 0.483333333
01131246 54.51666667 53.68333333 0.833333333
02260613 18.13333333 16.78333333 1.35
11160215 492.6166667 488.55 4.066666667
02211859 4.566666667 0 4.566666667
11240526 61.46666667 54.53333333 6.933333333
12211715 8.116666667 0.966666667 7.15
05272020 53.5 44.63333333 8.866666667
@elsherbini
elsherbini / _.md
Created May 16, 2013 16:40
Sherwood's Bouncing Ball
@elsherbini
elsherbini / _.md
Created May 23, 2013 01:34
How does crossfilter work?
@elsherbini
elsherbini / paste-first.js
Created May 31, 2013 20:17
Anyone help me debug this?
var tempChart = dc.compositeChart("#temp-chart"),
weightChart = dc.lineChart("#weight-chart"),
volumeChart = dc.barChart("#volume-chart"),
data = BEEDATA.find().fetch(),
dateFormat = d3.time.format("%Y/%m/%d %H:%M"),
parseDate = dateFormat.parse;
data.forEach(function(d) {
d.date = parseDate(d.date);
});
@elsherbini
elsherbini / _.md
Created June 12, 2013 18:59
SO barchart