You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🏠
Working from home
Recep Şen
senrecep
🏠
Working from home
CTO @Taptoweb | Easyapp.ai | Building Scalable, AI-Powered Systems
pi coding agent setup: full extension set migrated from Claude Code (27 packages, vetted)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UUIDv7 in Go, three ways — stateless (like .NET's Guid.CreateVersion7), mutex-monotonic (like google/uuid), and lock-free monotonic via atomic CAS. Runnable, RFC 9562 compliant, with race tests & benchmarks.
Three ways to make a UUIDv7 in Go
A UUIDv7 is a timestamp with random bits glued on. The first 48 bits hold the Unix time in milliseconds, big-endian, so the IDs sort by when you made them. That is what makes them good database keys. The catch shows up the moment you mint several inside the same millisecond: what decides their order?
This gist answers that three different ways, all in one runnable file.
Utility helper that takes raw markdown scraped from arbitrary websites and strips out URLs, tables, data URIs, and noisy tokens so it’s safe to feed into an LLM prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Veo JSON Architect - A System Prompt for Generating Structured JSON Blueprints for Multi-Clip Video Scenes
Advanced System Prompt for Google Veo: Generating Structured JSON for Production-Ready Video Scenes
This Gist contains a hyper-specialized system prompt designed to instruct a large language model (LLM) like GPT-4, Gemini, or Claude to act as a "Google Veo JSON Architect."
Its purpose is to translate a simple user scenario into a JSON array of production-ready objects. Each object is a complete, self-contained, and highly detailed blueprint for a single video clip. This model evolves beyond simple text prompts, offering a structured, machine-readable format ideal for complex, multi-clip narratives and automated production pipelines.
Core Features
True Stateful Continuity: This prompt enforces strict continuity across clips. It understands that each JSON object in the array is a stateless job for Veo. Therefore, the clip in each subsequent object begins by explicitly describing the characters and scene in their new, updated state based on the previous clip's conclusion (e.g., a