Skip to content

Instantly share code, notes, and snippets.

View alt-glitch's full-sized avatar
๐Ÿ‘จโ€๐Ÿ’ป
looking at a screen

Siddharth Balyan alt-glitch

๐Ÿ‘จโ€๐Ÿ’ป
looking at a screen
View GitHub Profile
@alt-glitch
alt-glitch / gta-4-modding-claude-code-trace.txt
Last active January 29, 2026 06:45
claude code modding gta 4 for me
โ•ญโ”€โ”€โ”€ Claude Code v2.1.22 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โ”‚ Tips for getting started โ”‚
โ”‚ Welcome back! โ”‚ Run /init to create a CLAUDE.md file witโ€ฆ โ”‚
โ”‚ โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚
โ”‚ โ–โ–›โ–ˆโ–ˆโ–ˆโ–œโ–Œ โ”‚ Recent activity โ”‚
โ”‚ โ–โ–œโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–›โ–˜ โ”‚ No recent activity โ”‚
โ”‚ โ–˜โ–˜ โ–โ– โ”‚ โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ Opus 4.5 ยท API Usage Billing โ”‚ โ”‚
@alt-glitch
alt-glitch / reverse_text_cc.py
Created September 17, 2025 09:27
Reverse text for `verifiers` modified to work with ClaudeCodeEnv
from datasets import load_dataset
import verifiers as vf
def load_environment(num_train_examples=2, num_eval_examples=1, **kwargs):
dataset = load_dataset("agentlans/wikipedia-paragraphs", split="train").map(
lambda x: {"question": x["text"], "answer": x["text"][::-1]}
)
train_dataset = dataset.select(range(num_train_examples)) # type: ignore
# Writing High-Quality Software Documentation with MDX
**A practical guide for developers and AI assistants**
Good documentation can make the difference between a successful software project and one that struggles to find or keep users. When technical users canโ€™t figure out how to use your product, they wonโ€™t remain usersโ€”no matter how amazing the software is (@Don't Skimp on Documentation | Twilio). Poor docs donโ€™t just frustrate readers; they create โ€œoperational debtโ€ in the form of support burdens and lost adoption (@Don't Skimp on Documentation | Twilio). In fact, bad or missing documentation often *feel* the same to a user (@Good Docs Take Great Effort | er4hn), wasting their time and forcing them to ask maintainers basic questions. On the other hand, great documentation empowers users to get started quickly and solve problems on their own (@Good Docs Take Great Effort | er4hn). This guide will cover documentation philosophy, types of docs (per the Diรกtaxis framework), writing style tips, formatting a
import argparse
import subprocess
from pathlib import Path
import cv2
import numpy as np
def motion_extract(
video_path,
@alt-glitch
alt-glitch / crtsh.py
Created November 17, 2022 09:30
Sample script to query crt.sh for certificate transparency log data.
import psycopg2
class CertificateTransparencyLog:
def __init__(self, base) -> None:
self.conn = psycopg2.connect(
host="crt.sh",
database="certwatch",
user="guest",
port="5432"