Skip to content

Instantly share code, notes, and snippets.

View StarKnightt's full-sized avatar
🎯
Focusing

Prasenjit StarKnightt

🎯
Focusing
View GitHub Profile
@StarKnightt
StarKnightt / gist:215b05092c898ead0530a61c2b685e62
Last active July 12, 2026 13:26
Prompt I used to build a 3D soda landing page with Grok 4.5 in one shot
# Recreate this interactive 3D soda landing page in Next.js + React + TypeScript + Tailwind
# Design and 3D assets from getlayers.ai (Soda template). This prompt recreates the design using Grok 4.5.
You are an expert creative front-end developer. Build a **Next.js (App Router) project** with React, TypeScript, and Tailwind CSS that reproduces the design below exactly — same layout, visuals, motion, and interaction.
Use `pnpm` as package manager. Use GSAP for animations and Google's `@google/model-viewer` for 3D models. All 3D assets are hosted on a CDN (URLs below). The page should be a single full-viewport (no-scroll) hero landing page.
## Project Setup
```bash
make a launch video for claude fable 5 by anthropic. 60 seconds max. cinematic, dark theme, intense.
requirements:
→ use remotion (react-based video framework)
→ must have sound effects (whoosh, bass drops, glitch sounds)
→ motion graphics with smooth transitions
→ show the fable 5 logo/text with dramatic reveal
→ include key stats: 1M token context window, $10/$50 per million tokens, 128K output, 5th generation intelligence
→ phases: teaser intro (dark, particles) → text reveals with animations → capability showcase (coding, research, agents) → logo reveal with tagline
→ color palette: anthropic orange (#D97757
), black, white, subtle glow effects
@StarKnightt
StarKnightt / liquid-effect-animation-prompt.md
Created February 19, 2026 15:01
Prompt to build an interactive liquid distortion effect component for React/Next.js using shadcn, Tailwind CSS & Three.js

You are given a task to integrate an existing React component in the codebase.

The codebase should support:

  • shadcn project structure
  • Tailwind CSS
  • TypeScript

If it doesn't, provide instructions on how to setup the project via shadcn CLI, install Tailwind or TypeScript.

@StarKnightt
StarKnightt / grpo_demo.py
Created February 2, 2025 12:11 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset