Skip to content

Instantly share code, notes, and snippets.

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

Ian Channing ianchanning

๐Ÿฆˆ
View GitHub Profile
@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 July 20, 2026 14:12
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

@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
@mltsy
mltsy / monkeyPatchSequelizeErrorsForJest.js
Last active March 3, 2026 17:07
Monkey Patch for the unfriendly errors thrown by Sequelize 6
/**
* This monkey patch fixes an error reporting issue with sequelize errors in tests,
* which was fixed in Sequelize v7, but hasn't been back-ported to Sequelize v6.
* See https://github.com/sequelize/sequelize/issues/14807#issuecomment-1854398131
*
* It should only be used in the test env, to make Sequelize error messages show up.
* This can be removed when we upgrade to Sequelize 7, or when the issue is fixed in v6.
*/
const { Sequelize } = require('sequelize')
@srsholmes
srsholmes / grecent.sh
Created November 23, 2023 15:58
Recent git branches
function grecent() {
local branches branch
branches=$(git branch --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]') \
&& branch=$(echo "$branches" | fzf --ansi) \
&& branch=$(echo "$branch" | awk '{print $1}' | tr -d '*') \
&& git checkout "$branch"
}
@khalidx
khalidx / node-typescript-esm.md
Last active May 2, 2026 04:25
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json