Skip to content

Instantly share code, notes, and snippets.

@yrashk
yrashk / inferal-workspace-architecture.md
Last active July 25, 2026 14:33
Inferal Workspace Architecture
@subtleGradient
subtleGradient / vt-hig.pdf
Last active December 26, 2025 10:51
VT-HIG Cheat Sheet -- Virtual Terminal Human Interface Guidelines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@steveruizok
steveruizok / clean-copy.md
Created December 7, 2025 22:03
Clean copy.

Reimplement the current branch on a new branch with a clean, narrative-quality git commit history suitable for reviewer comprehension.

Steps

  1. Validate the source branch

    • Ensure the current branch has no merge conflicts, uncommitted changes, or other issues.
    • Confirm it is up to date with main.
  2. Analyze the diff

  • Study all changes between the current branch and main.
@faabian
faabian / prover_verifier.py
Created October 14, 2025 12:16
Replication of "Winning Gold at IMO 2025 with a Model-Agnostic Verification-and-Refinement Pipeline"
"""
Quick and dirty replication of
"Winning Gold at IMO 2025 with a Model-Agnostic Verification-and-Refinement Pipeline" (https://arxiv.org/abs/2507.15855)
using LangGraph.
Export GOOGLE_API_KEY to run.
Change the model, question and constants directly in the code (no CLI).
"""
import asyncio
@intellectronica
intellectronica / excalidraw-observe.md
Last active October 4, 2025 18:19
Instruct an agent on how to observe the Excalidraw drawing or presentation it's working on.
  • To make sure that the files you edit and create look good, you MUST ALWAYS use a command like the following one to export a rendered image, view it, understand how it looks and what needs improvement, and iterate - making updates to the excalidraw file, exporting, and reviewing again - until the results are pixel perfect.
npx excalidraw-brute-export-cli \
  --input slides.excalidraw \
  --output slides.png \
  --format png \
  --scale 2 \
  --embed-scene true
  • ALWAYS export and review. NEVER declare the work on an Excalidraw drawing or presentation done until you've reviewed its rendered visual representation to verify and adjust as needed.
import React, { isValidElement } from "react";
// @ts-ignore
import * as ReactServer from "react-server-dom-webpack/server.edge";
// @ts-ignore
import * as ReactClient from "react-server-dom-webpack/client.browser";
import { DurableObject } from "cloudflare:workers";
type FirstParameterOr<T, Fallback> = T extends (
arg: infer U,
@danhollick
danhollick / tailwind-css-v4.mdc
Last active February 19, 2026 08:35
Cursor rules file for Tailwind CSS v4.0
// Update globs depending on your framework
---
name: tailwind_v4
description: Guide for using Tailwind CSS v4 instead of v3.x
globs: ["**/*.{js,ts,jsx,tsx,mdx,css}"]
tags:
- tailwind
- css
---
@peterc
peterc / CONVENTIONS.md
Last active March 8, 2026 00:42
CONVENTIONS.md file for AI Rails 8 development
  • You MUST NOT try and generate a Rails app from scratch on your own by generating each file. For a NEW app you MUST use rails new first to generate all of the boilerplate files necessary.
  • Create an app in the current directory with rails new .
  • Use Tailwind CSS for styling. Use --css tailwind as an option on the rails new call to do this automatically.
  • Use Ruby 3.2+ and Rails 8.0+ practices.
  • Use the default Minitest approach for testing, do not use RSpec.
  • Default to using SQLite in development. rails new will do this automatically but take care if you write any custom SQL that it is SQLite compatible.
  • An app can be built with a devcontainer such as rails new myapp --devcontainer but only do this if requested directly.
  • Rails apps have a lot of directories to consider, such as app, config, db, etc.
  • Adhere to MVC conventions: singular model names (e.g., Product) map to plural tables (products); controllers are plural.
  • Guard against incapable browsers accessing controllers with `allo