Skip to content

Instantly share code, notes, and snippets.

upInQrLayer
# timer=start()
downEvent -> downInQrLayer
downInQrLayer
# timer=0; post(esc_code)
upEvent -> upInQrLayer
# timer=start()
otherKeyDownEvent -> downInMvLayerQuickTimeout
@quackingduck
quackingduck / machine.js
Created December 27, 2020 01:12
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'left space key behavior',
initial: 'booting',
context: {layer: null, timer: null},
states: {
'booting': {
on: { 'boot': 'listening' }
},
'listening': {
states: {

Keybase proof

I hereby claim:

  • I am quackingduck on github.
  • I am mylesbz (https://keybase.io/mylesbz) on keybase.
  • I have a public key ASBC59u48rUdtvfnjmq3doFq2KOq_ziGR9lsAOkcWv1bzQo

To claim this, I am signing this object:

dev server
starting
running
restarting
@quackingduck
quackingduck / SketchSystems.spec
Last active August 1, 2018 03:44
ric session*
ric session*
start -> analyze
analyze*
lang can run commands -> cmd runner mode
lang can run files & projects -> runner mode
# action: log error
invalid props -> inactive
# entry action: reset if dirty, write lang header, unset dirty
active
# action: log error
@quackingduck
quackingduck / SketchSystems.spec
Last active July 17, 2018 21:20
unix process running
unix process running
initializing
read pwd as project dir -> locating comments dir
locating comments dir
# error: no project repo found to create comments dir in
project dir is root? -> died
found in project dir? -> locating attrs file
not in project dir? -> pop project dir
pop project dir
entry -> locating comments dir
commentary
initializing
read pwd -> locating commentary dir
locating commentary dir
found -> locating attrs file
locating attrs file
found -> parsing attrs file
parsing attrs file
MacOS (>=10.11) setup
clone
git clone http://www.cs.technion.ac.il/~cs236376/jos.git
cd jos
install pre-built 32bit (i586) gcc binaries from here
http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux
var nestedListMatch = function(lists, match) {
var firstItem = lists[0];
if(firstItem === match) {
return match;
}else if (Array.isArray(firstItem)){
var result = nestedListMatch(firstItem, match)
if(result === match) {
#!/bin/bash
# Given some html (on stdin), wraps it in html that applies the same aesthetic
# that github uses for rendering markdown-processed content
# Usage:
# markdown < in.md | ghstyles > out.html
# If you have node.js installed I recommend the [marked] processor. It's fast,
# supports "github flavored" markdown by default and has no dependencies