Skip to content

Instantly share code, notes, and snippets.

<html><head><title>Radial Bracket</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css"></style></head>
<body>
<svg>
<g transform="translate(100,100)">
<g>
<clipPath id="clip">
<rect x=0 y=0 width=100 height=100>
</clipPath>
@llimllib
llimllib / index.html
Last active August 29, 2015 14:00
Boston Marathon 2001-2014 Chloropleth
<html><head><title>Runner Chloropleth</title>
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.q0-9 { fill:rgb(247,251,255); }
.q1-9 { fill:rgb(222,235,247); }
.q2-9 { fill:rgb(198,219,239); }
.q3-9 { fill:rgb(158,202,225); }
.q4-9 { fill:rgb(107,174,214); }
.q5-9 { fill:rgb(66,146,198); }
@llimllib
llimllib / canada.json
Last active August 29, 2015 14:00
Boston Marathon Runners US + Canada
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@llimllib
llimllib / canada.json
Created April 30, 2014 19:08
Boston Marathon States & Provinces Map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@llimllib
llimllib / README.md
Created May 1, 2014 03:25
Boston Marathon Runners Chloropleth by Country 2001-2014

This map attempts to summarize the countries of origin of Boston Marathon runners from 2001-2014. I was surprised by how global the race is, with runners from 103 different countries over the course of those 13 races.

from PIL import Image
from glob import glob
import os
# pip install imagehash
import imagehash
images = {}
for f in glob("images/*"):
------- starters ------
Hazard: 927
Agüero: 924
Kane: 900
Sánchez: 651
van Aanholt: 641
Terry: 479
Cazorla: 465
Silva: 428
Di María: 421
#Here's the command line to build a papervision3d (papervision 3d) swc file
#using only the flex 3 sdk. Saved here for posterity and google's benefit.
#run this command from the trunk/src directory:
compc -source-path=. -include-sources=. -output papervision3d-test.swc
function my_input($data)
{
$CI =& get_instance();
$val = $CI->db_session->flashdata($data['name']);
//print_r($CI->db_session->userdata());
if ($val) $data['value'] = $val;
return form_input($data);
}
@llimllib
llimllib / as3_unused_imports.py
Created February 25, 2009 17:44
run with "python as3_unused_imports.py <directory to search recursively>"
#!/usr/bin/python
import sys, re
from os import walk
from os.path import join as pathjoin
from pprint import pprint as pp
def parsef(f):
imports = []
notimports = []
for line in file(f):