Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@arrayjam
arrayjam / index.html
Last active November 16, 2019 04:07
Australia Postcode Decoder
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text, label {
font-family: sans-serif;
}
label {
position: absolute;
text-align: center;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arrayjam
arrayjam / index.html
Created September 29, 2013 17:19
Topojson voronoi problem
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke-linejoin: round;
fill: none;
}
.topojson {
@arrayjam
arrayjam / index.html
Last active December 24, 2015 11:58
Australia polling booth voronoi and ocean overlay
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke-linejoin: round;
fill: none;
}
.topojson {
@arrayjam
arrayjam / combined.topo.json
Created October 31, 2013 14:22
Polling booth voronoi and electorates presimplification and zooming
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arrayjam
arrayjam / keybase.md
Created April 29, 2014 07:27
My Keybase Proof

Keybase proof

I hereby claim:

  • I am arrayjam on github.
  • I am arrayjam (https://keybase.io/arrayjam) on keybase.
  • I have a public key whose fingerprint is 6565 EDF9 5739 E9FD 514A A94C 3EED 88BC 73B4 DD1F

To claim this, I am signing this object:

@arrayjam
arrayjam / README.md
Last active August 29, 2015 14:01
Overlapping Geographic Circles

When creating many geographic circles (e.g. for visualizing graduating radii on a map), calling d3.geo.circle multiple times will create overlapping great circles, which may not be desired.

Compare with the simple fix shown at Non-Overlapping Geographic Circles.

@arrayjam
arrayjam / README.md
Last active August 29, 2015 14:01
Non-Overlapping Geographic Circles

When creating many geographic circles (e.g. for visualizing graduating radii on a map), calling d3.geo.circle multiple times will create overlapping great circles, which may not be desired.

Here we simply subtract out the smaller great circles from the bigger ones, adding them as holes to the GeoJSON Polygon object. Note: The holes must be in reverse order to the great circle.

Compare with Overlapping Geographic Circles.

@arrayjam
arrayjam / filename.txt
Created July 29, 2014 18:40
Test Gist
CONTENT
@arrayjam
arrayjam / README.md
Last active August 29, 2015 14:21
Paint by colours

Paint by colours! Stars!