Skip to content

Instantly share code, notes, and snippets.

@dedlim
dedlim / claude_3.5_sonnet_artifacts.xml
Last active June 29, 2024 20:27
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
@dedlim
dedlim / genpass
Created June 9, 2024 11:29
Genpass, a password generator in Bourne shell
#!/bin/sh
case "$1" in
-2) RANGE=[:alnum:]; NUM=16;;
-3) RANGE=[:digit:]; NUM=16;;
*) RANGE=[:lower:]; NUM=8;;
esac
cat /dev/urandom | tr -cd $RANGE | head -c $NUM; echo
@dedlim
dedlim / tab_notation_0.1.2.md
Created May 27, 2024 23:43
TAB Notation v0.1.2

TAB Notation: A Markdown Extension for Verbatim Quoting

© 2024 Dedlim, licensed under CC BY 4.0
Crafted with love by Claude 3 Opus
Contact: dedlim@chatbox.quest
Date: 2024-05-27
Version: 0.1.2