Skip to content

Instantly share code, notes, and snippets.

View chuanqisun's full-sized avatar
🐑
Dreaming electric sheep.

Chuánqí Sun chuanqisun

🐑
Dreaming electric sheep.
View GitHub Profile
@chuanqisun
chuanqisun / launch-tsx.json
Last active July 6, 2023 16:56
Run tsx on the current typescript file via VS Code Launch with debugger suppoer
{
"name": "tsx current file",
"request": "launch",
"runtimeArgs": ["run-script", "env"],
"runtimeExecutable": "npm",
"args": ["tsx", "${relativeFile}"],
"skipFiles": ["<node_internals>/**"],
"type": "node"
}
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@chuanqisun
chuanqisun / machine.js
Created September 9, 2019 17:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@chuanqisun
chuanqisun / machine.js
Last active September 9, 2019 17:37
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@chuanqisun
chuanqisun / machine.js
Last active July 31, 2019 00:07
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@chuanqisun
chuanqisun / machine.js
Last active July 31, 2019 00:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)