Skip to content

Instantly share code, notes, and snippets.

Nick Rabinowitz nrabinowitz

Block or report user

Report or block nrabinowitz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nrabinowitz
nrabinowitz / index.html
Created Oct 31, 2011 — forked from njvack/index.html
Beeswarm plot with gravity and collisions
View index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Beeswarm plot - collision detection</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
</head>
<body>
@nrabinowitz
nrabinowitz / progsvc.php
Created Aug 6, 2011
Mock PHP service for timemap.js progressive loading
View progsvc.php
<?
// get timestamps
$start = strtotime($_GET['start']);
$end = strtotime($_GET['end']);
$cb = $_GET['callback'];
// start data
echo "$cb([";
@nrabinowitz
nrabinowitz / quantize.js
Created Jul 25, 2011
Javascript module for color quantization, based on Leptonica
View quantize.js
/*!
* quantize.js Copyright 2008 Nick Rabinowitz.
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
// fill out a couple protovis dependencies
/*!
* Block below copied from Protovis: http://mbostock.github.com/protovis/
* Copyright 2010 Stanford Visualization Group
* Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php
You can’t perform that action at this time.