Skip to content

Instantly share code, notes, and snippets.

View psd's full-sized avatar

Paul Downey psd

View GitHub Profile
@psd
psd / .gitignore
Last active July 5, 2025 17:03
Digital Land collected data
endpoint.csv
@psd
psd / Makefile
Last active July 5, 2025 15:07
Digital Land GitHub pages
.PRECIOUS: pages.txt
index.md: pages.txt index.sh
bash index.sh < $< > $@
pages.txt: pages.sh
bash pages.sh > $@
@psd
psd / chart.txt
Last active June 10, 2025 08:52
My Waffle scores chart
{40: 858, 41: 873, 42: 888, 43: 903, 44: 919, 45: 936, 46: 953, 47: 971, 48: 989, 49: 1008, 50: 1028, 51: 1049}
1060 +--------------------------------------------------------------------+
| ** |
1040 | ** |
| *** |
1020 | *** |
| *** |
1000 | *** |
| ***** |
@psd
psd / community.tsv
Last active November 19, 2024 17:14
intervention organisation
software local-authority:BKM
software local-authority:DAC
software local-authority:DNC
software local-authority:GLO
software local-authority:CMD
software local-authority:LBH
software local-authority:SWK
software local-authority:MDW
software local-authority:NET
@psd
psd / Datasette redirection
Created September 17, 2024 13:59
Datasette redirection
$ python3.10 -m venv --prompt . .venv --clear --upgrade-deps && workon
Requirement already satisfied: pip in ./.venv/lib/python3.10/site-packages (22.2.2)
Collecting pip
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Requirement already satisfied: setuptools in ./.venv/lib/python3.10/site-packages (63.2.0)
Collecting setuptools
Using cached setuptools-75.1.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools, pip
Attempting uninstall: setuptools
@psd
psd / arcgis.py
Created June 11, 2024 06:21
Download GeoJSON from an ArcGIS API
#!/usr/bin/env python
import sys
import json
from esridump.dumper import EsriDumper
url = sys.argv[1]
dumper = EsriDumper(url, fields=None)
@psd
psd / .gitignore
Last active June 3, 2024 19:49
Create Local Land Charges Programme project markdown
.venv
organisation.csv
llc.html
@psd
psd / README.md
Created May 21, 2024 15:55
Finding old versions of a deleted file
(green-belt-collection) $ git blame --date=iso $(git log -2 --oneline -- collection/endpoint.csv | tail -1 | cut -d' ' -f1) collection/endpoint.csv
^fde75b2 (Paul Downey 2021-05-28 14:56:37 +0100  1) endpoint,endpoint-url,parameters,plugin,entry-date,start-date,end-date
05167dc5 (Paul Downey 2022-03-09 15:51:04 +0000  2) 21f6ac0160488dfdab4fae54bea1940ec2827e9c80d3b8df7ea73a45229c000f,http://maps.communities.gov.uk/geoserver/dclg_inspire/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=dclg_inspire%3AEngland_Green_Belt_2019-20_WGS84&outputFormat=GML3,,wfs,2021-10-27T06:06:33Z,,
05167dc5 (Paul Downey 2022-03-09 15:51:04 +0000  3) cbe952dd437d085d8c630d86632924693bac236c4fbad92cfdb623db3313e564,http://maps.communities.gov.uk/geoserver/dclg_inspire/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=dclg_inspire%3AEngland_Green_Belt_2018-19_WGS84&outputFormat=GML3,,wfs,2021-10-27T07:07:14Z,,
05167dc5 (Paul Downey 2022-03-09 15:51:04 +0000  4) 5cf30af559859b8e01088a0765f5864115ff3fe5504508168f1
@psd
psd / .gitignore
Last active September 28, 2023 08:57
.venv
@psd
psd / Untitled.ipynb
Last active June 30, 2023 08:08
Example analysis of broken endpoints on planning.data.gov.uk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.