Skip to content

Instantly share code, notes, and snippets.

Robin Gower Robsteranium

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am robsteranium on github.
  • I am robingower (https://keybase.io/robingower) on keybase.
  • I have a public key ASB-wba8mDlYA9NHIbn7EL3JcA0RPsyjZcjD598AkNaO1Ao

To claim this, I am signing this object:

@Robsteranium
Robsteranium / ons-shp-2-geojson.md
Last active Aug 29, 2015
Convert ONS Shapefiles to GeoJSON
View ons-shp-2-geojson.md

This gist describes how to create GeoJSON polygons from UK statistical boundaries for use in choropleths.

  1. Download the boundaries you're interested in from the ONS's Open Geography Portal:

    wget https://geoportal.statistics.gov.uk/Docs/Boundaries/Clinical_commissioning_groups_\(Eng\)_Apr_2013_Boundaries_\(Generalised_Clipped\).zip -O ccg-2013.zip
    unzip ccg-2013.zip -d shapes
    
  2. Re-project this from UK Grid Reference Eastings and Northings into Latitude and Longitude coordinates (i.e. EPSG:4326 aka WGS 84). You can use GDAL to do this:

@Robsteranium
Robsteranium / statistics-distributions.js
Created May 11, 2012 — forked from benrasmusen/statistics-distributions.js
JavaScript library for calculating critical values and upper probabilities of common statistical distributions
View statistics-distributions.js
/*
* NAME
*
* statistics-distributions.js - JavaScript library for calculating
* critical values and upper probabilities of common statistical
* distributions
*
* SYNOPSIS
*
*
@Robsteranium
Robsteranium / get_votes.pl
Created Mar 26, 2012 — forked from attractivechaos/get_votes.pl
Plot HackerNews polls on favorite and disliked programming languages
View get_votes.pl
#!/usr/bin/env perl
# This script collects voting from HackerNews and outputs a plot votes.eps
# You need to have gnuplot installed for plotting.
use strict;
use warnings;
use IO::Socket::INET;
sub http_get {
View add_to_gitconfig
[alias]
lg = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
You can’t perform that action at this time.