Skip to content

Instantly share code, notes, and snippets.

View ahwolf's full-sized avatar

Aaron Wolf ahwolf

  • FCA
  • Auburn Hills
View GitHub Profile
@ahwolf
ahwolf / README.md
Created November 11, 2015 16:59
Andre Drummond is a beast

Comparing Andre Drummond's performance to the rest of the league

@ahwolf
ahwolf / README.md
Last active August 29, 2015 13:57
Locating where to have a meetup

This example was created to help me figure out where to hold the location of the Data Science Southeast Michigan meetup.

Please click on Open in new window to view entire visual.

Example is also on github with supporting server side code. link
@ahwolf
ahwolf / d3_visual.js
Last active December 30, 2015 10:09
Big men in the NBA with a PER of 15 and Salary < 9mm
var data = [];
var width = 700;
var height = 500;
d3.csv("output.csv", function(csv_data) {
// make the data into an x y graph
var xy_data = [{
@ahwolf
ahwolf / serializers.py
Created November 11, 2013 21:23
Pagination error
# django
from django.forms import widgets
# 3rd party apps
from rest_framework import serializers, pagination
from base.models import Document, Sentence
class DocumentSerializer(serializers.Serializer):
@ahwolf
ahwolf / README.md
Created June 20, 2013 23:54 — forked from mbostock/.block

This example demonstrates how to add visible and draggable handles to D3’s d3.svg.brush component, rather than that relying on the invisible boundary of the brush extent. The handle sizes here are exaggerated for demonstration purposes!

@ahwolf
ahwolf / dummy.css
Last active December 12, 2015 12:09
30-30-30 visualization
.x_axis path,.x_axis line,.y_axis path,.y_axis line{
fill:none;
stroke:black;
shape-rendering:crispEdges
}
.x_axis text,.y_axis text{
font-family:georgia;
font-size:13px
}
.holder{
@ahwolf
ahwolf / index.html
Last active December 10, 2015 00:09
Snowflakes with D3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/ahwolf/d3_tutorial/master/code/js/lib/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/ahwolf/d3_tutorial/master/code/js/lib/underscore-1.3.3-min.js"></script>
<style type="text/css">
svg{display:block;}p.instructions{font-style:italic}#animation{margin-top:10px;text-align:center;width:400px}#animation .button{color:black;font-size:14px;font-weight:bold;width:150px;border-width:1px;padding:10px;margin:2px}.snowflake.even{fill:#42cae9}.snowflake.odd{fill:#9ee4f3}#rss_chart{display:none}