Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@jshumakerpruitt
jshumakerpruitt / _.md
Created May 20, 2014 19:04
trib_obesity
@jshumakerpruitt
jshumakerpruitt / _.md
Created May 20, 2014 05:24
trib_obesity
@jshumakerpruitt
jshumakerpruitt / _.md
Created May 18, 2014 20:03
trib_line_graph
@jshumakerpruitt
jshumakerpruitt / _.md
Created May 18, 2014 14:54
trib_scatter_plot
@jshumakerpruitt
jshumakerpruitt / bus_perf.json
Created May 18, 2014 14:52
Basic Scatter Plot
[{"collision_with_injury": 3.2, "dist_between_fail": 3924.0, "customer_accident_rate": 2.12}, {"collision_with_injury": 2.8, "dist_between_fail": 3914.0, "customer_accident_rate": 1.3}, {"collision_with_injury": 4.05, "dist_between_fail": 3550.0, "customer_accident_rate": 1.5}, {"collision_with_injury": 4.7, "dist_between_fail": 3625.0, "customer_accident_rate": 0.79}, {"collision_with_injury": 2.0, "dist_between_fail": 3171.0, "customer_accident_rate": 2.8}, {"collision_with_injury": 9.29, "dist_between_fail": 2699.0, "customer_accident_rate": 1.28}, {"collision_with_injury": 9.29, "dist_between_fail": 3008.0, "customer_accident_rate": 1.28}, {"collision_with_injury": 2.3, "dist_between_fail": 2815.0, "customer_accident_rate": 1.74}, {"collision_with_injury": 4.65, "dist_between_fail": 3366.0, "customer_accident_rate": 1.17}, {"collision_with_injury": 5.32, "dist_between_fail": 3667.0, "customer_accident_rate": 0.82}, {"collision_with_injury": 4.1, "dist_between_fail": 4170.0, "customer_accident_rate": 0.8},
@jshumakerpruitt
jshumakerpruitt / bar_chart.js
Last active August 29, 2015 14:01
Bar Chart from Getting started with D3
function draw(data){
d3.select("body")
.append("div").attr("class", "chart")
.selectAll("div.line")
.data(data.cash)
.enter()
.append("div")
.attr("class", "line");
d3.selectAll("div.line")
@jshumakerpruitt
jshumakerpruitt / _.md
Created May 18, 2014 00:41
basic_json
@jshumakerpruitt
jshumakerpruitt / index.html
Last active August 29, 2015 14:00
Mandelbrot set created with D3.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<title>ShuPru.com D3-powered Mandelbrot Visualization</title>
</head>
<body>
<script type="text/javascript">
@jshumakerpruitt
jshumakerpruitt / _.md
Created October 22, 2013 05:13
mandelbrot_v2