Skip to content

Instantly share code, notes, and snippets.

View cw's full-sized avatar

Christian Wilcox cw

View GitHub Profile
@cw
cw / index.html
Last active October 20, 2017 15:30
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React bl.ocks test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.0.0/cjs/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.0.0/cjs/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/6.1.19/browser.min.js"></script>
</head>

Keybase proof

I hereby claim:

  • I am cw on github.
  • I am cawilcox (https://keybase.io/cawilcox) on keybase.
  • I have a public key ASCcCZbJGbKJhYICvhNXhQI5-zRuPlVWiAq7h7eTfBc7gAo

To claim this, I am signing this object:

@cw
cw / madison_half_marathon.json
Last active October 8, 2016 14:07
Data points for visualizing the 2016 Fall Madison Half Marathon http://codepen.io/caw/full/LRLZZA/
[
{
"tag": "start",
"intersection": "Martin Luther King Jr & W Main",
"lat": 43.0738881,
"lng": -89.3831241,
"pov": 231
},
{
"tag": "1st turn",
Date Open High Low Close Volume Adj Close
2016-06-13 10789.72 10907.41 10759.14 10829.68 4298910000 10829.68
2016-06-12 10835.96 10960.99 10732.27 10788.05 4284160000 10788.05
2016-06-11 10857.98 10901.96 10759.75 10835.28 3990280000 10835.28
2016-06-10 10809.85 10905.44 10714.03 10858.14 4025840000 10858.14
2016-06-09 10860.03 10902.52 10776.44 10812.04 3587860000 10812.04
2016-06-08 10664.39 10897.83 10664.39 10860.26 4123950000 10860.26
2016-06-07 10738.48 10779.65 10610.12 10662.42 3847850000 10662.42
2016-06-06 10761.11 10829.75 10682.4 10739.31 3911070000 10739.31
2016-06-05 10753.39 10844.89 10674.83 10761.03 4175660000 10761.03
[{
"day": 2,
"hour": 1,
"count": 127
}, {
"day": 4,
"hour": 1,
"count": 141
}, {
"day": 1,
@cw
cw / flare.json
Created May 24, 2016 01:48
flare data
{
"name": "flare",
"children": [
{
"name": "analytics",
"children": [
{
"name": "cluster",
"children": [
{"name": "AgglomerativeCluster", "size": 3938},
App = function();
App.prototype.write_file = function(filename, code) {
var elements, elem, evt;
// remove existing WriteFileElem
elements = document.getElementsByTagName('WriteFileElem');
while (elements[0]) elements[0].parentNode.removeChild(elements[0]);
// make new WriteFileElem and hide it
elem = document.createElement("WriteFileElem");
elem.setAttribute("filename", filename);
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
import platform
import argparse
class MyClass(object):
system = platform.system()
if system == "Darwin":
app_path = "some MacOS X path"