Skip to content

Instantly share code, notes, and snippets.

View tmbtech's full-sized avatar

Robbie dela Victoria tmbtech

  • Allergan Data Labs
  • Orange County
View GitHub Profile
@tmbtech
tmbtech / machine.js
Created August 18, 2021 00:55
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tmbtech
tmbtech / machine.js
Created July 31, 2021 03:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tmbtech
tmbtech / machine.js
Created July 30, 2021 06:26
Generated by XState Viz: https://xstate.js.org/viz
// TODO: this needs to be refactored to a better location
const brandNames = {
botox: 'BOTOX®',
juvederm: 'JUVÉDERM®',
cool_sculpting: 'CoolSculpting® and CoolSculpting® Elite',
cool_tone: 'CoolTone®',
diamond_glow: 'DiamondGlow®',
kybella: 'KYBELLA®',
latisse: 'LATISSE®',
natrelle: 'Natrelle®',
@tmbtech
tmbtech / machine.js
Last active July 28, 2021 07:34
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine(
{
id: 'isi-builder',
initial: 'start',
context: {
brands: ['botox', 'kybella'],
},
states: {
start: {
on: {
@tmbtech
tmbtech / machine.js
Created June 10, 2021 22:01
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tmbtech
tmbtech / machine.js
Created January 30, 2020 01:08
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@tmbtech
tmbtech / machine.js
Created January 29, 2020 01:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@tmbtech
tmbtech / machine.js
Created January 10, 2020 23:59
Generated by XState Viz: https://xstate.js.org/viz
const Foobar = Machine({
id: 'fetch',
initial: 'loading',
context: {
patientID: null
},
states: {
loading: {
on: {
"": [
@tmbtech
tmbtech / machine.js
Created October 7, 2019 20:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tmbtech
tmbtech / machine.js
Created August 28, 2019 18:29
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions