Skip to content

Instantly share code, notes, and snippets.

@travisdoesmath
travisdoesmath / index.html
Last active July 14, 2017 03:48
States I've Visited
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/queue-async/1.0.7/queue.min.js"></script>
<style type="text/css">
/* On mouse hover, lighten state color */
path:hover {
fill-opacity: .7;
@travisdoesmath
travisdoesmath / README.md
Last active December 28, 2017 20:38
Double pendulum simulator

A double pendulum simulator using a Runge-Kutta integrator.

@travisdoesmath
travisdoesmath / README.md
Created December 6, 2016 18:44
Archimedean Ulam Spiral

What does it look like if we extend the idea behind Ulam's spiral and look at prime lengths of the Archimedean spiral?

Sadly, not like much.

@travisdoesmath
travisdoesmath / illinois.json
Created December 30, 2015 20:41
Chicago Grid
{ "type": "Feature", "properties": { "GEO_ID": "0400000US17", "STATE": "17", "NAME": "Illinois", "LSAD": "", "CENSUSAREA": 55518.930000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -87.532331, 39.997776 ], [ -87.532542, 39.987462 ], [ -87.532683, 39.977691 ], [ -87.532790, 39.975010 ], [ -87.532776, 39.971077 ], [ -87.533227, 39.883127 ], [ -87.533142, 39.810947 ], [ -87.533056, 39.803922 ], [ -87.533058, 39.796243 ], [ -87.533066, 39.781743 ], [ -87.532703, 39.664868 ], [ -87.532444, 39.646102 ], [ -87.532365, 39.646126 ], [ -87.532008, 39.564013 ], [ -87.531939, 39.545853 ], [ -87.531965, 39.526937 ], [ -87.531692, 39.495516 ], [ -87.531627, 39.491698 ], [ -87.531663, 39.477120 ], [ -87.531624, 39.469378 ], [ -87.531608, 39.466225 ], [ -87.531489, 39.449474 ], [ -87.531355, 39.437732 ], [ -87.531355, 39.436656 ], [ -87.531646, 39.347888 ], [ -87.544013, 39.352907 ], [ -87.554400, 39.340488 ], [ -87.578331, 39.340343 ], [ -87.589084, 39.333831 ], [ -87.600397, 39.312904 ], [ -87.597946, 39.299479