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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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); } |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from glob import glob | |
import os | |
# pip install imagehash | |
import imagehash | |
images = {} | |
for f in glob("images/*"): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------- starters ------ | |
Hazard: 927 | |
Agüero: 924 | |
Kane: 900 | |
Sánchez: 651 | |
van Aanholt: 641 | |
Terry: 479 | |
Cazorla: 465 | |
Silva: 428 | |
Di María: 421 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
OlderNewer