Skip to content

Instantly share code, notes, and snippets.

View matthewwoodruff's full-sized avatar

Matt Woodruff matthewwoodruff

View GitHub Profile
@matthewwoodruff
matthewwoodruff / machine.js
Created September 18, 2020 09:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@matthewwoodruff
matthewwoodruff / machine.js
Created September 9, 2020 19:51
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {
zombies: 1000,
door_gap: 0,
},
states: {
locked: {
@matthewwoodruff
matthewwoodruff / machine.js
Created September 9, 2020 19:50
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {
zombies: 1000,
door_gap: 0,
},
states: {
locked: {
@matthewwoodruff
matthewwoodruff / machine.js
Created September 9, 2020 19:49
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {
zombies: 1000,
door_gap: 0,
},
states: {
locked: {
@matthewwoodruff
matthewwoodruff / machine.js
Created September 9, 2020 19:48
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {
zombies: 1000,
door_gap: 0,
},
states: {
locked: {
@matthewwoodruff
matthewwoodruff / machine.js
Created September 9, 2020 19:48
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {
door_gap: 0,
},
states: {
locked: {
initial: 'main',
@matthewwoodruff
matthewwoodruff / machine.js
Last active September 10, 2020 08:05
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {
door_gap: 0,
},
states: {
locked: {
on: {
@matthewwoodruff
matthewwoodruff / machine.js
Created September 9, 2020 19:44
Generated by XState Viz: https://xstate.js.org/viz
const zombieMachine = Machine({
id: 'Armoured Door',
initial: 'closed',
context: {},
states: {
locked: {
on: {
UNLOCK: 'closed'
}

Keybase proof

I hereby claim:

  • I am matthewwoodruff on github.
  • I am tuos (https://keybase.io/tuos) on keybase.
  • I have a public key ASAZuBAZIWYS9QHwZhup1NABd5qaOpLnhNgmjAjfMe9tawo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am matthewwoodruff on github.
  • I am mwoodruff (https://keybase.io/mwoodruff) on keybase.
  • I have a public key ASBzAocP0AgiEhJUcf4tkly_KmsC40DSO1QC5n1AZqhbUgo

To claim this, I am signing this object: