Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Pie Multiples with Nesting</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.4.5"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.4.5"></script>
<style type="text/css">
body {
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Box Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.4.5"></script>
<style type="text/css">
body {
text-align: center;
@steveodom
steveodom / locally.sh
Created November 22, 2012 03:43 — forked from dewski/locally.sh
Turn an EC2 micro instance into a StatsD/Graphite server
ec2-authorize default -p 2003
@steveodom
steveodom / cf_template.json
Last active December 13, 2015 16:59
CloudFormation template to bootstrap Neo4j and redis. Based on neo4j-puppet template. (https://github.com/neo4j-contrib/neo4j-puppet/blob/master/cf_template.json).
{
"Description": "Neo4j on AWS - creates a stack and deploys Neo4j on it",
"Parameters": {
"AcceptOracleLicense" : {
"Description" : "This parameter indicates that you accept the terms of Oracle's License Agreement for Java (see README)",
"Type" : "String",
"AllowedValues": ["true", "false"],
"Default": "true"
},
"Neo4jUserName": {
@steveodom
steveodom / notes.md
Last active December 13, 2015 16:59
Notes on using AWS cloudformation to bootstrap a EC2 instance with Neo4J and Redis.
@steveodom
steveodom / README.md
Last active December 18, 2015 03:49 — forked from mbostock/.block

Click to add nodes! Nodes near the cursor will be linked to the new node.

D3's force layout uses the Barnes–Hut approximation to compute repulsive charge forces between all nodes efficiently. Links are implemented as geometric constraints on top of position Verlet integration, offering greater stability. A virtual spring between each node and the center of the chart prevents nodes from drifting into space.

@steveodom
steveodom / README.md
Last active August 29, 2015 14:10 — forked from mbostock/.block

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

@steveodom
steveodom / clarify_config
Last active August 29, 2015 14:11
Mashbox: Test of clarify remote config
{
"default_search_terms": ["education"],
"autosearch_terms": [
"three pointer",
"foul shot",
"dunk",
"crossover"
],
"page_title": "Clarify | Sample",
"logo_header": "",
@steveodom
steveodom / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
require.config({
map: {
'*': {
'underscore': 'js/lodash',
'jquery': 'js/jquery',
'lodash': 'js/lodash'
}
}
});