Skip to content

Instantly share code, notes, and snippets.

@devinhalladay
Last active February 7, 2023 15:54
Show Gist options
  • Save devinhalladay/0d5e485b99d8b6b740c8366e8fee8a17 to your computer and use it in GitHub Desktop.
Save devinhalladay/0d5e485b99d8b6b740c8366e8fee8a17 to your computer and use it in GitHub Desktop.
Resting*
Resting*
play -> Booting
always on -> Booting
Booting
2s delay -> Running
Running
stop -> Resting
code update -> Booting
error -> Booting
crash -> BSOD
BSOD
refresh -> Resting
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment