Skip to content

Instantly share code, notes, and snippets.

@vin-e
vin-e / machine.js
Created April 29, 2021 08:30
Generated by XState Viz: https://xstate.js.org/viz
const windowMachine = Machine({
id: 'window',
initial: 'open',
context: {
},
states: {
open: {
initial: 'floating',
states: {
@vin-e
vin-e / machine.js
Last active July 24, 2020 03:57
Generated by XState Viz: https://xstate.js.org/viz
const validate = ({ value, validator }) => {
if (validator === undefined) {
return new Promise((resolve) => resolve())
}
return validator.validate(value)
}
const inputMachine = Machine({
id: 'input',
initial: 'valid',
@vin-e
vin-e / machine.js
Created July 17, 2020 03:51
Generated by XState Viz: https://xstate.js.org/viz
const schemaMachineConfig = {
initial: 'idle',
context: {
schemaToLoad: undefined,
schemas: {}
},
states: {
idle: {
@vin-e
vin-e / machine.js
Created July 12, 2020 06:14
Generated by XState Viz: https://xstate.js.org/viz
const debugDelay = 2500
const FormMachine = Machine({
id: 'form',
initial: 'idle',
context: {
testId: 34,
schema: undefined,
entity: undefined,
errorMessage: undefined,
@vin-e
vin-e / machine.js
Created July 10, 2020 21:34
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@vin-e
vin-e / machine.js
Created June 24, 2020 20:42
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@vin-e
vin-e / Contract Killer 3.md
Created June 10, 2020 07:54
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@vin-e
vin-e / About Search.jpg
Last active February 1, 2020 19:52 — forked from ryanlucas/About Search.jpg
Unlocking iPhone 8 iOS 11
About Search.jpg
@vin-e
vin-e / machine.js
Last active February 2, 2020 08:22
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@vin-e
vin-e / machine.js
Last active October 10, 2019 23:34
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions