Skip to content

Instantly share code, notes, and snippets.

View mpowell-atomic's full-sized avatar

Mark Powell mpowell-atomic

View GitHub Profile
@mpowell-atomic
mpowell-atomic / machine.js
Last active February 24, 2021 01:58
Generated by XState Viz: https://xstate.js.org/viz
const createPreview = (campaignId) => {
return {};
};
const deletePreview = (campaignId) => {
return {};
};
const previewMachine = Machine(
@mpowell-atomic
mpowell-atomic / machine.js
Created February 24, 2021 01:54
Generated by XState Viz: https://xstate.js.org/viz
const createPreview = (campaignId) => {
return {};
};
const deletePreview = (campaignId) => {
return {};
};
const previewMachine = Machine(
@mpowell-atomic
mpowell-atomic / machine.js
Created February 8, 2020 03:45
Generated by XState Viz: https://xstate.js.org/viz
Machine(
{
id: 'launch',
initial: 'initial',
states: {
initial: {
on: {
SUBMIT: {
target: 'confirmation',
// cond: ( context, event ) => {
@mpowell-atomic
mpowell-atomic / machine.js
Last active February 7, 2020 21:40
Generated by XState Viz: https://xstate.js.org/viz
const stateIsCompleted = ( context, event ) => {
return context.completed['slug'].completed;
};
Machine(
{
initial: 'slug',
context: {
completed: {
slug: {

Keybase proof

I hereby claim:

  • I am mpowell-atomic on github.
  • I am mpowell_atomic (https://keybase.io/mpowell_atomic) on keybase.
  • I have a public key whose fingerprint is 2372 8DA9 CBE6 0B0A ED5F 1B32 B461 83E3 6ED0 FA9A

To claim this, I am signing this object: