Skip to content

Instantly share code, notes, and snippets.

@VonD
VonD / SketchSystems.spec
Last active December 23, 2019 19:26
Customer Input Machine
Customer Input Machine
empty*
INPUT -> autocompleting
autocompleting
INPUT -> autocompleting
BLUR_WITH_EMPTY_TEXT -> empty
BLUR_WITH_TEXT -> customerBlurTypePrompt
SELECTION -> idle
CREATE -> idle
customerBlurTypePrompt
@VonD
VonD / machine.js
Last active December 3, 2019 13:35
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
/*! L.Mappy 5.0.3 2014-03-27 */
(function(L) {
'use strict';
var random_string = function(length) {
var str;
str = '';
while (str.length < length) {
str += Math.random().toString(36)[2];