Skip to content

Instantly share code, notes, and snippets.

View spentacular's full-sized avatar

Spencer Hamm spentacular

View GitHub Profile
@spentacular
spentacular / keyboard.json
Last active January 10, 2019 05:49
QMK Keyboard Layout
{
"keyboard": "tada68",
"keymap": "spencer",
"layout": "LAYOUT_ansi",
"layers": [
[
"KC_GRV",
"KC_1",
"KC_2",
"KC_3",
@spentacular
spentacular / cloudSettings
Last active November 30, 2020 20:41
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-30T20:41:25.071Z","extensionVersion":"v3.4.3"}
@spentacular
spentacular / statemachine.js
Created February 3, 2018 07:48
Stop light state machine
class StateMachine {
constructor(initialState, transitions) {
this.state = initialState
this.transitions = transitions
}
transition(next) {
const nextState = this.transitions[this.state][next]
if (!nextState) throw new Error(`invalid: ${this.state} -> ${next}`)
this.state = nextState

Keybase proof

I hereby claim:

  • I am spentacular on github.
  • I am spentacular (https://keybase.io/spentacular) on keybase.
  • I have a public key whose fingerprint is 2D4E FDA4 BDB6 78A6 651A 5B56 50A4 17F5 7FD6 D570

To claim this, I am signing this object: