This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inspired by CPU Calculator from ImagePipe.NET, but with the secondary output stream polled rather than event-based. | |
#nullable enable | |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using FluentAssertions; | |
using Mediapipe.Net.Core; | |
using Mediapipe.Net.Framework; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;ctrl-shift-e = email address, plus put cursor in the right place to add +something | |
^+e::send darren@bruning.net.nz{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left}{Left} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getHopMesh(row, toEastingField, toNorthingField, transportMode, material, topHalf) { | |
let from = { | |
x: eastingToMap(row.data.SA2_usual_residence_easting), | |
y: northingToMap(row.data.SA2_usual_residence_northing) | |
} | |
let to = { | |
x: eastingToMap(row.data[toEastingField]), | |
y: northingToMap(row.data[toNorthingField]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a test gist | |
It will be embedded: | |
* Inside a test page | |
* Nowhere else |