Skip to content

Instantly share code, notes, and snippets.

Avatar
🎛️

Mal Curtis snikch

🎛️
  • inMusic / DenonDJ
  • Auckland, New Zealand
  • Twitter @snikchnz
View GitHub Profile
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
const mergeTrust = (key) => ({
// id: 'mergeTrust'+key,
initial: "checkSuperseded",
context: {},
states: {
checkSuperseded: {
// always: [
// { target: "ignore", cond: "checkSuperseded" },
// { target: "checkTrust" }
// ],
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
const defEmit = {
initial: 'awaitingEvent',
states: {
awaitingEvent: {
on: {
EMIT_EVENT: 'emitting',
}
},
View machine.js
const defProcessed = {
saving: {
invoke: {
src: 'saveEvent',
onDone: {
target: 'saved'
},
onError: {
target: 'error'
}
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@snikch
snikch / .env.example
Last active May 20, 2021
Chia Network Docker Compose
View .env.example
PLOTS_TMP_DIR=/mnt/scratch/plots
PLOTS_FINAL_DIR=/mnt/storage/plots
View keybase.md

Keybase proof

I hereby claim:

  • I am snikch on github.
  • I am snikch (https://keybase.io/snikch) on keybase.
  • I have a public key ASBxC7cG-o9JguSQGkfICPIFmoH4LE7GcvVj-Ucxxbjpsgo

To claim this, I am signing this object: