Skip to content

Instantly share code, notes, and snippets.

View ldodds's full-sized avatar
🤓

Leigh Dodds ldodds

🤓
View GitHub Profile
@ldodds
ldodds / about_tidal.txt
Created April 11, 2024 15:49
All of the software and licences used to build TIDAL for web (2024-04-10)
This file has been truncated, but you can view the full file.
-----
The following software may be included in this product: @aashutoshrathi/word-wrap, is-extglob, word-wrap. A copy of the source code may be downloaded from git+https://github.com/aashutoshrathi/word-wrap.git (@aashutoshrathi/word-wrap), git+https://github.com/jonschlinkert/is-extglob.git (is-extglob), git+https://github.com/jonschlinkert/word-wrap.git (word-wrap). This software contains the following license and notice below:
The MIT License (MIT)
Copyright (c) 2014-2016, Jon Schlinkert
Permission is hereby granted, free of charge, to any person obtaining a copy
@ldodds
ldodds / README.md
Last active September 2, 2023 01:15
How to make your own Xanadu demo

Twitter informed that a demo of Xanadu had launched, so I went to have a look. The demo only works in Firefox and it seems to be a cut down version of demos that I've seen Ted Nelson give in the past. But still: running code in the wild.

I met Ted Nelson once when we both spoke at an STM Innovations conference in 2006. I suspect he wouldn't have agreed with my much of my talk which looked at the web as a hypertext system and compared it with earlier approaches. My point of view was that we could bring those features back into the web by creating new services and by exploiting Javascript and web browsers to upgrade our experience of using the web. Evolution doesn't need to happen in a coordinated centralised way.

(When I say I met Ted Nelson, I meant that I shyly sat next to him at lunch while he expounded on various topics and fiddled with the tape recorder he was using to record all his conversations. So maybe, "met" isn't the right word (he won't

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>General Zod</title>
<link>http://www.general.zod</link>
<description>General Zod's channel</description>
<item>
<title>General Zod's annoucement</title>
<link>http://genera.zod/video.mp4</link>
@ldodds
ldodds / land-registry-price-paid.json
Last active April 20, 2022 01:18
Land Registry Monthly Price Paid Schema (CSV, new version)
{
"title": "Land Registry Monthly Price Paid Data",
"description": "Schema for the land registry monthly price-paid data",
"fields": [
{
"name": "ID",
"description": "Unique transaction code",
"constraints": {
"required": true,
"minLength": 38,
@ldodds
ldodds / stats.rb
Created December 29, 2021 17:41
Quick script to count number of bookmarks recorded in pinboard
require 'dotenv/load'
require 'pinboard'
require 'csv'
pinboard = Pinboard::Client.new(:token => ENV["PINBOARD_TOKEN"])
CSV.open("stats.csv", "w") do |csv|
csv << ["YEAR", "POSTS", "VIA_POCKET"]
#I started social bookmarking in 2004 using del.icio.us, then pinboard from May 2013
#started logging read articles in Pocket to pinboard via IFTTT in mid-2018
@ldodds
ldodds / custom.jsonld
Last active June 3, 2021 02:45
Example of a simple custom JSON-LD context
{
"@context":{
"label":"http://www.w3.org/2000/01/rdf-schema#label",
"xsd":"http://www.w3.org/2001/XMLSchema#",
"ext":"http://example.org/jsonld#",
"id":"@id"
},
"ext:myCustomProperty":{
"id":"ext:myCustomProperty",
"label":"This is the label"
@ldodds
ldodds / meteostat-notes.md
Last active January 27, 2021 18:30
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
@ldodds
ldodds / geosummary.sh
Created May 15, 2013 10:22
Summarise dbpedia geographic coverage by reverse geocoding the lat/lng data
#!/bin/bash
#
# Script to download English dbpedia lat/lng data and produce a
# summary of geographic coverage
#
# You'll need to have local-geocoder Ruby application installed:
#
# sudo gem install local-geocoder
#
# http://github.com/aishfenton/local-geocoder
KiiERgHCZozOM1lbH22_zttPhbr9tcbfU3W7r72_Mvt237t9hfbt-802_gtf52Ph73z9j6_1d-Mvfv3P8b7P9st23pt9Bb-ztfC3vl7H19r7_Ze-evf43W7Prsfe2Wr9dabtPYb7L32afC323zt1_outvubr9Zebfv3W7D-2_TG7Xl9ww_da-gtfm3v37H_932sfs3-gz_Fa-lB76jy_da-gtfm3v37H_l9PY2-Rz_tZ-H966bx_5Z-Otfx2Pw7379D-_PUW2vFXXf61vK7nn970_Bb-ztfC303z9j6_1d-Mvfv3P87fiWXfy1vK7nn970_Bb-ztfC3vl7H19r7_Ze-evvP8779nf1P06Xlt85Z-Otfx2vc7nx9b5_Rdffd33n5999ef-pV97r_yYLfV2vTL6D2_lb-EufL3Pq77PbqfW1PGL5rz_5Z-Otfx2vc7nx9b5__xvv-R___Ni6Hjd8VZ-8sfn2zHs9L3_Jcffv33H_99_Nt779_nd6Ha99_YsfV2PP73p9D2_lb-Euvv377D-__P47vITfff13HaF8_YsfV2PP73p9D2_lb-Euvvl77j6__MvvP87730uvP07X89fsqv33X9Dt_efM2x4rz_5Z-Otfx2vc7nx9b5_Rd-6uvP877fxsfp3-A8_Jf-LQ65rp__sqff13Hj9rz_5Z-Otfx2vc7nx9b5_Rd-Evfr3P877fuufz3-g8_La3P27-cR-aqfW1vBbI8yY-qshxnn970KGkPY7Xu9T4W_Wulvub5w8_hf-Fob5T__Hg3zfQdLfr3fJ7_Re-HH6HR99ZVffn2PY7Xut8Jc-6ulzH_9PQufy3fy5_le-Dq7n49X0ul-pg_tTffW13770_BbLlvcb5L4WKfx3P87fgcLlP07fAdLfg3-46WK-G-8Tm_ZVffe2PY7Xu9T4_tc-oufd3Pw7379D-_jAYj5Pmnf8wPr679da-gtmvcL5T4S_WukPqL5r7S_Mvkv3L5D-S_v-L5XUnfwwvT7Hsl8lb-EufL3