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 / 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)
@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 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
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
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@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"
}
@chuanqisun
chuanqisun / claude_3.5_sonnet_artifacts.xml
Created July 3, 2024 20:58 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times