Skip to content

Instantly share code, notes, and snippets.

@schryer
schryer / theory-experiment-computation.svg
Last active December 17, 2015 14:39
image-theory-experiment-computation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### Keybase proof
I hereby claim:
* I am schryer on github.
* I am schryer (https://keybase.io/schryer) on keybase.
* I have a public key ASCRmNyt8qkKt-TRIgnbbkDsUT447YQ-tY9Q0bNyW-Bk-Ao
To claim this, I am signing this object:
const emailStates = {
initial: 'noError',
states: {
noError: {},
error: {
initial: 'empty',
states: {
empty: {},
badFormat: {},
noAccount: {}
Machine({
initial: 'active',
context: { C: undefined, F: undefined },
states: {
active: {
on: {
CELSIUS: {
actions: assign({
C: (_, event) => Number(event.value),
F: (_, event) => CtoF(event.value)