Skip to content

Instantly share code, notes, and snippets.


Leigh Dodds ldodds

View GitHub Profile
View zod.rss
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<title>General Zod</title>
<description>General Zod's channel</description>
<title>General Zod's annoucement</title>
ldodds / stats.rb
Created Dec 29, 2021
Quick script to count number of bookmarks recorded in pinboard
View stats.rb
require 'dotenv/load'
require 'pinboard'
require 'csv'
pinboard = => ENV["PINBOARD_TOKEN"])"stats.csv", "w") do |csv|
csv << ["YEAR", "POSTS", "VIA_POCKET"]
#I started social bookmarking in 2004 using, then pinboard from May 2013
#started logging read articles in Pocket to pinboard via IFTTT in mid-2018
ldodds /
Last active Jan 27, 2021
Meteostat Interpolation Notes

Code for the hourly endpoints in Meteostat API can be found here:

Overall Flow

After initially accepting the request, connecting to the database, parsing parameters, etc. The bulk of work is done in the Fetch method.

This does the following, focusing only on temperatures:

  • parse the start/end dates, ading supplied timezone
View town.txt
ldodds / osm-missing-benches-openbenches.geojson
Last active Dec 27, 2019
Benches in OpenBenches that are potentially missing in OpenStreetmap. Data published under CC-BY-SA. Generated on 27/12/2019.
View osm-missing-benches-openbenches.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ldodds / openbenches-by-lad.csv
Last active Dec 27, 2019
Benches in OpenBenches and OpenStreetmap. Published under CC-BY-SA licence. Contains from, Office for National Statistics and Ordnance Survey. Created 27/12/2019
View openbenches-by-lad.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have columns, instead of 7. in line 6.
E06000003,Redcar and Cleveland,,0
E06000003,Redcar and Cleveland,,33
ldodds / dgu-dataset-site-names.csv
Created Dec 8, 2018
Bristol Allotment Site Name Comparison
View dgu-dataset-site-names.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Sites from DGU Dataset
Arlington Road Allotments
Ashley Vale Allotments
Atwood Drive Allotments
Barracks Lane Allotments
Bath Road Allotments
Beaufort Road Allotments
Bedminster Down C Allotments
Bell Hill Allotments
Bifield Road Allotments
ldodds / kumu.css
Created Jul 24, 2018
Kumu configuration
View kumu.css
@settings {
template: systems;
connection-color: #0DBC37;
opposite-style: none;
font-color: #000;
font-size: 33;
element-text-align: bottom;
/* Knowledge & Insights */
View test.json
"type": "Event",
"identifier": 40,
"name": "Bootcamp",
"url": "",
"location": {
"type": "Place",
"address": {
"type": "PostalAddress",
"streetAddress": "London SE4 1LE, UK,undefined",