Skip to content

Instantly share code, notes, and snippets.

View aerrity's full-sized avatar

Andrew Errity aerrity

View GitHub Profile
@aerrity
aerrity / .DS_Store
Last active March 8, 2017 14:27 — forked from gabrielflorit/Makefile
Equidistant map perimeter circles

A quick-and-dirty approximate visualization of distance from the U.S. border or coastline, whichever is closer. Unlike the coastal distance map, this is based on geographic distance rather than graph (topologic) distance.

This map is an approximation because distances shown are measured in projected coordinates (10px) rather than on the surface of the Earth, and no geographic projection preserves distances equally between all pairs of points. A more accurate approach would compute the border buffer shapes in spherical coordinates.

(Also, I’d rather have this map just show distance from the coast rather than the border, but that requires a bit more work, too!)

@aerrity
aerrity / README.md
Last active August 29, 2015 13:57 — forked from mbostock/.block

Click and drag to paint! Click on the colors or use the number keys to change colors. Copy-and-paste the address bar to share this map with others. There’s a counties version, too.

@aerrity
aerrity / README.md
Last active August 29, 2015 13:57 — forked from mbostock/.block
Paint by Numbers - Republic of Ireland

Click and drag to paint! Click on the colors or use the number keys to change colors. Copy-and-paste the address bar to share this map with others. Forked from Mike Bostock's US version.