Skip to content

Instantly share code, notes, and snippets.

View mittinatten's full-sized avatar

Simon Mitternacht mittinatten

View GitHub Profile
@mittinatten
mittinatten / machine.js
Last active June 18, 2021 07:25
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@mittinatten
mittinatten / machine.js
Last active February 24, 2021 09:07
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@mittinatten
mittinatten / machine.js
Last active December 11, 2020 11:32
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@mittinatten
mittinatten / get-qt-location.js
Last active October 17, 2019 12:20
Node-script to extract GPS coordinates from QuickTime video
// Quite crude, but worked for the one example file I had
// QuickTime docs https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFPreface/qtffPreface.html
const fs = require('fs');
if (!process.argv[2]) {
console.error('Please specify a file name');
process.exit(1);
}
const fileName = process.argv[2];