Skip to content

Instantly share code, notes, and snippets.

@RickCarlino
Created June 1, 2021 12:45
Show Gist options
  • Save RickCarlino/7e43c293cead16fd9ead256f084d80fb to your computer and use it in GitHub Desktop.
Save RickCarlino/7e43c293cead16fd9ead256f084d80fb to your computer and use it in GitHub Desktop.
:activate-burners 'Burners_ON s:put nl ;
:begin-timer 'Timer_SET s:put nl ;
:toaster.on-start hook ;
:activate-toaster toaster.on-start activate-burners begin-timer ;
:custom-callback 'Hello_from_my_callback s:put nl ;

Run without callbacks:

activate-toaster

Results:

Burners ON
Timer SET

Run With callbacks:

&custom-callback &toaster.on-start set-hook
activate-toaster

Results:

Hello from my callback
Burners ON
Timer SET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment