Skip to content

Instantly share code, notes, and snippets.

View flother's full-sized avatar

Matt Riggott flother

View GitHub Profile

Keybase proof

I hereby claim:

  • I am flother on github.
  • I am flother ( on keybase.
  • I have a public key ASCBlQQowjnBso30LwncUDDlt0M9CjvIH7z-E_p2Y_Diuwo

To claim this, I am signing this object:

flother / .block
Last active March 11, 2016 00:01
The Counted in southern California
license: cc-by-sa-4.0
border: no
height: 600
flother /
Last active March 12, 2016 21:12
Aping the New York Times

Annotated source code to make [this chart] [1] using [R] [2] and [ggplot2] [3]. The source data is included as justices.csv and a [write-up of the process] [4] can be found on my blog.

# An attempt to duplicate a chart published by the New York Times graphics
# department: After selecting the data around 80% of the
# work is done in the first ggplot() call. The other 20% --- that took at least
# 80% of the time --- are the following lines. They make this chart look like
# the original. If there's one thing I'd do better next time, it would be to
# make it resolution-independent (this version only really works at 1050x707).
flother / index.html
Last active February 18, 2016 13:49
Publish a chart of CSV data queried in real-time using SQL
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Liberal Democrat polls and quarterly polling averages</title>
<script src="//"></script>
<script src="//"></script>
<div id="vis"></div>
flother /
Last active September 16, 2015 12:58 — forked from enjalot/
visualizing map distortion
flother /
Last active September 3, 2015 22:44
Scrape earthquakes measured by the Icelandic Meteorological Office (Veðurstofa Íslands) from 1991 to 2014.
# coding: UTF-8
Scrape earthquakes measured by the Icelandic Meteorological Office (Veðurstofa
Íslands) from 1991 to 2015.
The data is collected from zipped KML files downloaded from
from collections import OrderedDict
from cStringIO import StringIO
import datetime
flother / england-local-government.json
Last active August 29, 2015 13:59
JSON dictionary containing a hierarchy of the nine regions of England, and the upper- and lower-tier of local government within those regions.
"East Midlands": {
"Derby": [],
"Derbyshire": [
"High Peak",
"North East Derbyshire",
"Amber Valley",
"Derbyshire Dales",
flother / tfl_lines.json
Last active August 29, 2015 13:55 — forked from oobrien/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
flother / index.html
Last active January 1, 2016 18:48
Copy of the stations.geojson in my glasgow-cycle-hire repo, here to allow for quick viewing of a map via
<!DOCTYPE html>
<link rel="canonical" href="">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0; url=">
import os
from flother.settings.common import *
DEBUG = True