View wfs.py
#!/usr/bin/env python3
"""
https://geopython.github.io/OWSLib/
"""
from owslib.wfs import WebFeatureService
url='http://inspire.misoportal.com/geoserver/mid_sussex_district_council_msdc_3830_tpo_point/wfs?service=wfs&version=2.0.0&request=GetCapabilities'
url='http://environment.data.gov.uk/ds/wfs?INTERFACE=ENVIRONMENTWFS--7a955570-d465-11e4-a37c-f0def148f590'
View wms.py
#!/usr/bin/env python3
from owslib.wms import WebMapService
wms = WebMapService('http://inspire.landregistry.gov.uk/inspire/ows?Service=WMS&Request=Getcapabilities', version='1.1.1')
print(wms.identification.type)
layers = list(wms.contents)
layer=layers[0]
View split.sh
#!/bin/bash
awk -F' ' \
-v artist="Underworld" \
-v album="Everything Everything" \
'BEGIN {
total=0;
n=0;
}
{
View portfolio-form.json
{
"type": "object",
"required": [
"name",
"shoesizeLeft"
],
"properties": {
"name": {
"title": "Name",
"description": "Gimme yea name lad",
View portfolio-form.json
{
"type": "object",
"required": [
"name",
"shoesizeLeft"
],
"properties": {
"name": {
"title": "Name",
"description": "Gimme yea name lad",
View README.md
View gist:1d4cc608f543901795f7f4436ef6182a
import io
import csv
import requests
class Records:
"Minimal register client"
records = {}
url = 'https://%s.register.gov.uk/records.tsv?page-size=5000'
View count-attachments.sh
#!/bin/bash
# 10 /government/uploads/system/uploads/attachment_data/file/98864/thumbnail_emr-2010-11.pdf.png GET 200 origin,2
find daily -type d -name '20??????' |
while read dir
do
date=$(echo "$dir" | sed -e 's/^.*\(20[0-9]*\).*$/\1/')
zcat $dir/count_cdn-govuk.log-20*.csv.gz |
sed -e 's/^[0-9][0-9] //' \
View show-and-tell.html
http://www.openregister.org/
https://gds.blog.gov.uk/2015/09/01/registers-authoritative-lists-you-can-trust/
https://twitter.com/search?q=from%3Apsd%20%22list%20of%20the%20day%22&src=typd
https://www.gov.uk/government/publications/list-of-gov-uk-domain-names
https://www.gov.uk/government/publications/current-registered-providers-of-social-housing
https://data.gov.uk/dataset/list-of-internal-drainage-boards
https://www.gov.uk/government/publications/list-of-authorised-isa-managers/isas-authorised-managers
http://openregister.github.io/country-data/lists/report.html
https://reports.ofsted.gov.uk/
https://github.com/psd/doctate
View read-tsv.py
#!/usr/bin/env python3
import sys
import csv
for row in csv.DictReader(sys.stdin, delimiter='\t'):
if '"' in row['name']:
print(row['name'])