Skip to content

Instantly share code, notes, and snippets.

View iainvdw's full-sized avatar

Iain van der Wiel iainvdw

View GitHub Profile
@iainvdw
iainvdw / machine.js
Last active October 4, 2019 12:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
### Keybase proof
I hereby claim:
* I am iainvdw on github.
* I am iain_vdw (https://keybase.io/iain_vdw) on keybase.
* I have a public key ASAi79hOfPLZdJ0xqTVGgvQdjmAzm9zHXy1ElqXB6a7Gqgo
To claim this, I am signing this object:
@iainvdw
iainvdw / index.js
Created July 25, 2018 08:55
Transmuter.js - simple state container store, fires events when property changes
import { Transmuter, listen } from './transmuter.js';
// Set up intial state
const initialState = {
name: 'lala',
isIt: true,
count: 123,
};
// Setup store
@iainvdw
iainvdw / 0_reuse_code.js
Created February 11, 2016 15:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console