Skip to content

Instantly share code, notes, and snippets.

View thomastheyoung's full-sized avatar

Thomas LE JEUNE thomastheyoung

  • San Francisco, California
View GitHub Profile
@thomastheyoung
thomastheyoung / SKILL.md
Created April 8, 2026 03:48
Elite Architect — adversarial software architecture thinking partner skill for Claude Code

name: elite-architect description: > An adversarial software architecture thinking partner. Use this skill whenever the user is working through a software design decision, modeling a domain, debating module boundaries, evaluating abstractions, reviewing a system design, or asking "how should I structure X." Also trigger when the user shares code or a diagram and wants architectural feedback, when they're weighing tradeoffs between approaches, or when they say things like "challenge my design," "what am I missing," "review this architecture," "help me think through,"

@thomastheyoung
thomastheyoung / code-quality.md
Created April 7, 2026 18:34
Claude Code custom skills: code review, naming, design, Convex, CSS, MCP builder, testing, architecture, writing, and more
name code-quality
description Apply code quality infrastructure: Lefthook for git hooks, Vitest for testing, GitHub Actions for CI/CD, branch protection. Use when setting up quality gates, configuring hooks, or reviewing automation.

Code Quality Infrastructure

Standards for automated quality gates through git hooks, testing, and continuous integration.

Philosophy

@thomastheyoung
thomastheyoung / principal-engineer.md
Created April 7, 2026 18:33
Claude Code custom subagent definitions: principal-engineer, security, tech-debt, typescript
name principal-engineer
description Critical review of proposals, designs, and code from other agents. Validates quality, performance, elegance, and alignment with project goals. Use when you need a second opinion on significant decisions or before implementing complex changes.
tools
Read
Grep
Glob
Bash
WebFetch
WebSearch
Task
Write

Principal Engineer

You are a principal engineer performing critical review. Your role is to challenge assumptions, identify gaps, and ensure proposals meet the highest standards before implementation.

@thomastheyoung
thomastheyoung / result.ts
Last active August 1, 2025 05:02
Rust-inspire Result for Typescript: A tri-state Result type that represents operations that can succeed with a value, fail with an error, or return empty.
/**
* Result Type System
*
* A tri-state Result type that represents operations that can succeed with a value,
* fail with an error, or return empty. This pattern replaces traditional try/catch
* with explicit error handling and null safety.
*
* @template T - The type of successful values
* @template E - The type of error values
*
/**
* Generates a non-cryptographic hash from a string using the FNV-1a algorithm.
* Returns the hash as a hexadecimal string.
* Note: This is for non-cryptographic purposes only.
*/
export function FNVHash(input: string): string {
let hash = 2166136261; // FNV offset basis
for (let i = 0; i < input.length; i++) {
hash ^= input.charCodeAt(i);
// Math.imul performs 32-bit multiplication which is critical for FNV-1a
@thomastheyoung
thomastheyoung / countries_with_vat.txt
Created March 15, 2016 14:58
Countries with a VAT system
1 Austria AT
2 Belgium BE
3 Brazil BR
4 Bulgaria BG
5 Croatia HR
6 Cyprus CY
7 Czech Republic CZ
8 Denmark DK
9 Estonia EE
10 Finland FI
@thomastheyoung
thomastheyoung / update_git_index.sh
Created November 11, 2015 02:04
When your git is stubborn and stuck with files that don't disappear (even with reset --hard), so you can't change branch: update git indexes so git knows those files didn't change
git ls-files -m | xargs -I {} git update-index --assume-unchanged {}
@thomastheyoung
thomastheyoung / remove_files_pattern.sh
Created March 25, 2015 09:46
remove files matching a certain pattern
find . -type f -name "*conflicted copy*" -delete
@thomastheyoung
thomastheyoung / thumbnails.md
Created September 9, 2014 01:00
Thumbnail calculations

Mobile Web Devices Usage

TL;DR: The final most common thumbnail sizes

133x74 (2.7%)

Samsung GT-S5360 Galaxy Y, Samsung GT-S5830i Galaxy Ace

200x112 (8.6%)

Samsung GT-18190 Galaxy S3 Mini, Nokia Lumia 520, Samsung GT-S7562 Galaxy S Duos, Samsung GT-S7582 Galaxy S Duos 2, Samsung GT-I8262 Galaxy Duos, Samsung GT-S7262 Galaxy Star S7262, Samsung GT-19100 Galaxy S2, Samsung GT-I9082 Galaxy Grand Duos

@thomastheyoung
thomastheyoung / feops 2014.md
Last active October 28, 2015 05:27
Front-End Ops 2014 sum up !