Skip to content

Instantly share code, notes, and snippets.

Matt Riggott flother

Block or report user

Report or block flother

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am flother on github.
  • I am flother (https://keybase.io/flother) on keybase.
  • I have a public key ASCBlQQowjnBso30LwncUDDlt0M9CjvIH7z-E_p2Y_Diuwo

To claim this, I am signing this object:

@flother
flother / .block
Last active Mar 11, 2016
The Counted in southern California
View .block
license: cc-by-sa-4.0
border: no
height: 600
@flother
flother / README.md
Last active Mar 12, 2016
Aping the New York Times
View README.md

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: http://nyti.ms/1ofeih6. 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).
# More details can be found at http://flother.is/2016/supreme-court-ideology/.
@flother
flother / index.html
Last active Feb 18, 2016
Publish a chart of CSV data queried in real-time using SQL
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Liberal Democrat polls and quarterly polling averages</title>
<script src="//vega.github.io/vega-editor/vendor/d3.min.js"></script>
<script src="//vega.github.io/vega/vega.min.js"></script>
</head>
<body>
<div id="vis"></div>
@flother
flother / README.md
Last active Sep 16, 2015 — forked from enjalot/README.md
visualizing map distortion
View README.md
@flother
flother / iceland_earthquakes.py
Last active Sep 3, 2015
Scrape earthquakes measured by the Icelandic Meteorological Office (Veðurstofa Íslands) from 1991 to 2014.
View iceland_earthquakes.py
# 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 vedur.is.
"""
from collections import OrderedDict
from cStringIO import StringIO
import datetime
@flother
flother / england-local-government.json
Last active Aug 29, 2015
JSON dictionary containing a hierarchy of the nine regions of England, and the upper- and lower-tier of local government within those regions.
View england-local-government.json
{
"East Midlands": {
"Derby": [],
"Derbyshire": [
"High Peak",
"Chesterfield",
"North East Derbyshire",
"Amber Valley",
"Bolsover",
"Derbyshire Dales",
View tfl_lines.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flother
flother / index.html
Last active Jan 1, 2016
Copy of the stations.geojson in my glasgow-cycle-hire repo, here to allow for quick viewing of a map via bl.ocks.org.
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Redirecting...</title>
<link rel="canonical" href="http://flother.github.io/glasgow-cycle-hire/">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0; url=http://flother.github.io/glasgow-cycle-hire/">
</head>
<body>
<p><strong>Redirecting...</strong></p>
View Example settings for running Flother locally
import os
from flother.settings.common import *
DEBUG = True
TEMPLATE_DEBUG = True
SITE_ID = 1
You can’t perform that action at this time.