Skip to content

Instantly share code, notes, and snippets.


Thomas Wood IgnoredAmbience

View GitHub Profile
View gist:e619bce2993c9c4633db858aa6024849
Coronavirus (COVID-19): safer travel guidance for passengers
Walking, cycling, and travelling in vehicles or on public transport during the coronavirus outbreak.
Published 12 May 2020
Last updated 3 July 2020 — see all updates
Department for Transport
Applies to:
England (see guidance for Wales, Scotland, and Northern Ireland)
View azOrderInChaos.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
IgnoredAmbience / zooniverse.user.js
Last active April 16, 2020 16:08
Zooniverse Transcription Keyboard Shortcuts User Script
View zooniverse.user.js
// ==UserScript==
// @name Zooniverse Transcription Keyboard Shortcuts
// @namespace
// @updateURL
// @version 0.2
// @description Make Zooniverse Transcription quicker to use, enter will change between value entry textboxes, pages, and jump to Done button
// @author Thomas Wood
// @match*/classify
// @grant GM_addStyle
// ==/UserScript==
IgnoredAmbience /
Last active August 23, 2019 10:14
Tiff and PDF Conversion Commands

Extracting PDF Files to Images

PDF files that contain a single image are often a pain to work with, but it is simple to extract that image using pdfimages.

First, run pdfimages with the list command to check the document is composed of a single image:

$ pdfimages -list file.pdf
page   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio
   1     0 image    3508  2480  rgb     3   8  jpeg   no         8  0   300   300  409K 1.6%
IgnoredAmbience /
Last active February 4, 2023 04:07
Delphi GetIt Dependency Compile Build Error Fix


When setting GetIt dependencies on a project, Emarcadero Delphi 10.2 Tokyo will fail the build with this error:

Project [...] (Make target(s)):
Target _CheckGetItPackageDependencies:
    Target _ExecGetItCmd:
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets : warning : Checking GetIt package dependencies
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(305,5): error MSB4018: The "GetItCmd" task failed unexpectedly.
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(305,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(305,5): error MSB4018:    at Borland.Build.Tasks.Common.CommandLineTask.Execute()
IgnoredAmbience / emfcamp.pem
Created August 31, 2018 18:42
Emfcamp prm
View emfcamp.pem
IgnoredAmbience /
Last active June 17, 2022 15:47
How to register a personal device on the wired network at Imperial College London

How to register a personal device on the wired network at Imperial College London

Useful if your machine's OS isn't pre-loaded with an Operating System with a web-browser(!)

Alternatively, you can contact ICT self-service.

Information required:

  • IP address of device (as assigned by the pre-registration network, 172.nnn.nnn.nnn, IP_ADDRESS in the below command)
  • MAC Address of device (xx:xx:xx:xx:xx:xx, MAC_ADDRESS in the below command)
  • Your college username and password (USER_NAME below, you will be prompted for the password)
IgnoredAmbience /
Last active January 10, 2018 20:31
int -> string, converting integers into double-struck unicode characters
(** Conversion between integers and unicode \mathbb strings *)
(* 0-9 as unicode \mathbb{d} multibyte character strings *)
let ustr_bb_digits =
Array.init 10 (fun i -> Printf.sprintf "\xf0\x9d\x9F%c" (char_of_int (0x98 + i)))
(** Converts an integer into an array of decimal digits *)
let int_to_array i =
let rec f i acc = if i == 0 then acc else f (i/10) (i mod 10 :: acc) in
f i []