Skip to content

Instantly share code, notes, and snippets.

View greycode's full-sized avatar
💭
I may be slow to respond.

Calvin Yu greycode

💭
I may be slow to respond.
View GitHub Profile
@dedlim
dedlim / claude_3.5_sonnet_artifacts.xml
Last active July 10, 2025 14:51
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
import SwiftUI
struct StackGeometryReader: View {
@Binding var takePic: Bool
@State private var contentHeight: CGFloat = 0
var body: some View {
VStack {
PrintableCells(color: Color.pink)
PrintableCells(color: Color.red)
@staltz
staltz / introrx.md
Last active July 7, 2025 10:24
The introduction to Reactive Programming you've been missing