Skip to content

Instantly share code, notes, and snippets.

View ianchanning's full-sized avatar
๐Ÿฆˆ

Ian Channing ianchanning

๐Ÿฆˆ
View GitHub Profile
@ghuntley
ghuntley / jiti-kernel-diagram.md
Last active October 10, 2026 21:51
JITI kernel, OpenAI generations, and recovery ASCII diagrams

JITI: a CS50-style tour of a repairable Lisp kernel

The project keeps a running Lisp world alive while an outside controller asks an OpenAI model what to try next.

1. The big picture

                         "What should we try?"
                                  |
 v
@samuelcolvin
samuelcolvin / 10k.py
Last active September 28, 2026 16:21
# /// script
# requires-python = ">=3.14"
# dependencies = ["pydantic-monty>=1"]
# ///
import time
from pydantic_monty import Monty
N = 10_000
@dmmulroy
dmmulroy / coding-standards-draft.md
Created June 18, 2026 22:39
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.
@CyrusNuevoDia
CyrusNuevoDia / plan-goal.md
Created June 6, 2026 22:32
a skill that flips goal-setting โ€” write the verifier for "X is done" first, make that the goal, then loop planโ†’doโ†’verify until it passes.

name: plan-goal description: >- Turn a fuzzy task into a verifier-first goal. Instead of planning how to do X, first write a self-contained prompt that CHECKS whether X is actually done, make that verifier the standing goal, then run planโ†’doโ†’verify cycles against it until it passes. Use this whenever starting a non-trivial, multi-step task where "done" is ambiguous or premature success is a risk โ€” especially when the user says "plan-goal", "verify-first", "define done", "set the goal", "how will we know this worked", or asks you to plan something substantial. Prefer this over jumping

@aparente
aparente / SKILL.md
Last active October 1, 2026 14:57
tufte-viz Claude Code skill โ€” Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays

@karpathy
karpathy / microgpt.py
Last active October 20, 2026 02:02
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@Blumed
Blumed / Documentation.md
Last active September 7, 2025 04:16
pixel to rem converter bookmarklet

Pixel to Rem Converter

Screenshot 2025-08-02 at 9 38 36โ€ฏPM

Features:

  • It reads the current pages root pixel size and unit size calculations will be based off of it
  • You can edit the root pixel size if you would like and all calculations of unit sizes will change accordingly
  • Updating the pixel value will update the rem value automatically
  • Updating the rem value will update the pixel value automatically
  • Using the copy buttons will append the unit name to the end of the value for you ex. 10px or 0.625rem
@VictorTaelin
VictorTaelin / claude_code_hvm_work.txt
Created March 5, 2025 02:18
Claude Code optimizes HVM3-Nano from 183 MIPS to 265 MIPS on Apple M3 // 217 MIPS to 328 MIPS on Apple M4
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โœป Welcome to Claude Code research preview! โ”‚
โ”‚ โ”‚
โ”‚ /help for help โ”‚
โ”‚ โ”‚
โ”‚ cwd: /Users/v/vic/dev/IC โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
! cat InteractionCalculus.md
@ngxson
ngxson / FAQ.md
Last active August 5, 2025 17:29
convert ARM NEON to WASM SIMD prompt

Why did you do this?

Relax, I only have one Sunday to work on idea, literally my weekend project. So I tried Deepseek to see if it can help. Surprisingly, it works and it saves me another weekend...

What is your setup?

Just chat.deepseek.com (cost = free) with prompts adapted from this gist.

Does it work in one-shot or I have to prompt it multiple times?

@mberneti
mberneti / retryDynamicImport.ts
Last active June 22, 2026 20:12
This utility function retryDynamicImport enhances Reactโ€™s lazy loading mechanism by adding retry logic with a versioned query parameter. It retries importing a component multiple times in case of failure, which can be useful for bypassing browser cache or dealing with intermittent network issues. It can be used as a drop-in replacement for Reactโ€ฆ
// Usage:
// Replace React.lazy(() => import('x'));
// with retryDynamicImport(() => import('x'));
import { ComponentType, lazy } from 'react';
const MAX_RETRY_COUNT = 15;
const RETRY_DELAY_MS = 500;
// Regex to extract the module URL from the import statement