Skip to content

Instantly share code, notes, and snippets.

View psd's full-sized avatar

Paul Downey psd

View GitHub Profile
@psd
psd / all.txt
Last active April 6, 2016 11:23
Find words containing all of the vowels, in order
$ egrep 'a.*e.*i.*o.*u' /usr/share/dict/words
abietineous
abstemious
abstemiously
abstemiousness
abstentious
acetabuliferous
acetarious
acheilous
acheirous
@psd
psd / README.md
Last active December 4, 2015 23:20

Location Data Importer

Location Data Importer is a scala application that imports Ordinance Survey data into a mongo database. Primarily it is used to back the locate-api which provides address and local authority lookups from postcode / GSS Code.

The code is under an MIT license, see LICENSE.

Data

This is backed by two Ordinance Survey products:

@psd
psd / onename
Created November 4, 2015 12:46
Verifying that +psd is my blockchain ID. https://onename.com/psd
@psd
psd / README.md
Last active April 22, 2016 10:52
Convert Tiers 2 and 5 sponsors into a TSV
$ tiddlywiki test --init server
.. created test/tiddlers/$__sidebar.tid
$ tiddlywiki test --server
@psd
psd / diffs.txt
Last active August 29, 2015 14:10
This file has been truncated, but you can view the full file.
9715c9715
< "{AFC934E1-B31A-473B-960C-0309094FE2E3}","106000","1995-01-09 00:00","SW11 3BL","F","N","F","533","FLAT ABOVE SHOP","BATTERSEA PARK ROAD","LONDON","LONDON","WANDSWORTH","GREATER LONDON","A"
---
> "{AFC934E1-B31A-473B-960C-0309094FE2E3}","106000","1995-01-09 00:00","SW11 3BL","F","N","F","533A","","BATTERSEA PARK ROAD","","LONDON","WANDSWORTH","GREATER LONDON","A"
25601c25601
< "{1FB96B78-6395-4C6F-9A7C-F1D8ABC78EB6}","65000","1995-01-20 00:00","NR14 7SX","S","N","F","22","","CAWSTONS MEADOW","PORINGLAND","NORWICH","SOUTH NORFOLK","NORFOLK","A"
---
> "{1FB96B78-6395-4C6F-9A7C-F1D8ABC78EB6}","65000","1995-01-20 00:00","NR14 7SX","D","N","F","22","","CAWSTONS MEADOW","PORINGLAND","NORWICH","SOUTH NORFOLK","NORFOLK","A"
44146a44147
> "{CEB111BB-7F11-49D6-BE3A-61998E3B084F}","37500","1995-01-31 00:00","CB7 4TQ","S","N","F","2","","MILE END CROSSING","PRICKWILLOW","ELY","EAST CAMBRIDGESHIRE","CAMBRIDGESHIRE","A"

One CSV, thirty stories

I hit something of an impasse blogging here of late. A number of colleagues in a similar position have used the 30 days song challenge to unblock their blogs with some success, and I thought I’d try to do something similar, but different.

So I’ve picked out a single CSV file, the list of price paid for property from The Land Registry, and each day over the next month I’ll use it to tell small stories about open data and visualisations. Thirty is a nice round number and at this point seems almost unachievable and definitely a challenge.

The code for these articles are open source, natch, and I’ll build a portfolio site as we go along.

_Something of a disclaim

@psd
psd / gist:bed9f4a8d67b26b9a2fd
Created September 18, 2014 13:24
Keybase.io
### Keybase proof
I hereby claim:
* I am psd on github.
* I am psd (https://keybase.io/psd) on keybase.
* I have a public key whose fingerprint is 1C76 88BC 706A 353B 0CAD D260 C78B 6F27 E1EE 3052
To claim this, I am signing this object:
#!/usr/bin/env python
from bs4 import BeautifulSoup
from json import JSONEncoder
def xml2json(text):
xml = BeautifulSoup(text, 'xml')
#print xml.prettify()
title = {
'title_number': xml.TitleNumber.string