Skip to content

Instantly share code, notes, and snippets.

View snikch's full-sized avatar
🎛️

Mal Curtis snikch

🎛️
  • inMusic
  • Auckland, New Zealand
  • Twitter @snikchnz
View GitHub Profile
@snikch
snikch / machine.js
Created March 9, 2021 19:45
Generated by XState Viz: https://xstate.js.org/viz
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@snikch
snikch / machine.js
Last active March 1, 2021 01:34
Generated by XState Viz: https://xstate.js.org/viz
View machine.js
const mergeTrust = (key) => ({
// id: 'mergeTrust'+key,
initial: "checkSuperseded",
context: {},
states: {
checkSuperseded: {
// always: [
// { target: "ignore", cond: "checkSuperseded" },
// { target: "checkTrust" }
// ],
@snikch
snikch / machine.js
Last active November 30, 2020 04:26
Generated by XState Viz: https://xstate.js.org/viz
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@snikch
snikch / machine.js
Last active December 3, 2020 04:55
Generated by XState Viz: https://xstate.js.org/viz
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
@snikch
snikch / machine.js
Last active November 2, 2020 04:08
Generated by XState Viz: https://xstate.js.org/viz
View machine.js
const defEmit = {
initial: 'awaitingEvent',
states: {
awaitingEvent: {
on: {
EMIT_EVENT: 'emitting',
}
},
@snikch
snikch / machine.js
Last active November 1, 2020 21:52
Generated by XState Viz: https://xstate.js.org/viz
View machine.js
const defProcessed = {
saving: {
invoke: {
src: 'saveEvent',
onDone: {
target: 'saved'
},
onError: {
target: 'error'
}
@snikch
snikch / machine.js
Last active October 27, 2020 01:45
Generated by XState Viz: https://xstate.js.org/viz
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@snikch
snikch / .env.example
Last active May 20, 2021 12:46
Chia Network Docker Compose
View .env.example
PLOTS_TMP_DIR=/mnt/scratch/plots
PLOTS_FINAL_DIR=/mnt/storage/plots
@snikch
snikch / keybase.md
Created March 3, 2020 21:47
keybase.md
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: