Code Notes
TILs, snippets—my digital code garden
✅Coding standards
👌Awesome Web Dev resources
🧪Jest
🎭Playwright
📖Storybook
🧪Testing library
⚡Vitest
🪝Newer React hooks
Async cheatsheet
⚛TanStack Query (React Query)
⚛React component patterns
Array methods summarised
🔁Bash to Fish (and back)
🔁Looping and iterating in JavaScript
🔀Reshaping data in JavaScript
Technical Job Interview Questions
🧪Type check helpers
TypeScript
TypeScript functions
TypeScript type guards and narrowing
🧺Object.groupBy
🪆Recursion
🛑AbortController
⏳Debounce
🐕Fetch
🚸IntersectionObserver
🔎QMD
Stimulus cheatsheet
📝TanStack Form
🗂TanStack Table
🚦Throttle
🔍Regular expressions
🔒Locking scroll
Text wrapping & word breaking
💯Intl.NumberFormat
🔢Intl.PluralRules
⏳Intl.RelativeTimeFormat
🐕Axios
Big O Notation
Native browser loading state
Check if value is array in JavaScript
Check if JavaScript object is empty
🗜Clamp number
📦Clickable box
📝Commit message guidelines
🦒Contentful migrations
⚡C++ for TypeScript developers
↔️CSS Media Queries
💄CSS Object styles
CSS Protips
Express middleware testing
🐠Fish shell
🍿Fullscreen video
🐹Golang for TypeScript developers
GraphQL
GSAP
Hexadecimal colour code for transparency
🙅♀️Ignoring code
Pluralisation with inflect()
📱is-mobile check
🧪Jest global mocks
🔑Keycode
🧪Nock
oEmbed
📨Postman.io
Pure ESM packages
React compound components
🎣useReducer
❌Removing items from arrays
Save scroll position
⚡Supabase.js
🔦Switch(true)
URL & URLSearchParams
Useful JavaScript functions & snippets
📤Web Share
🗣Webmentions
Yalc
🔢Basic Maths Notation
Supabase
🧮CSS Functions
🎨CSS Native Element Theming
🪺Native CSS Nesting
🍎SwiftUI for TypeScript developers
♿aria-label notes
🐻Zustand
Git worktrees with Graphite
Graphite CLI
Immer
JavaScript dates
🖼Native image lazy loading
NATS & JetStream
Next.js
🏎Web performance tips
🐘PHP for TypeScript developers
🐍Python for TypeScript developers
⚛React Error Boundary
⚛React TypeScript
🎣React Context
🎣useId
Redux / Redux Toolkit
🦀Rust for TypeScript developers
💅Styled Components
SvelteKit
🎨Theme UI
tmux
📑JSDoc
❌Get last array item
❌Remove array duplicates with Set
📝GitHub markdown
Content flow spacing
𝌞Flexible content without wrapper divs
💽Postgres
Git
📝README.md / markdown snippets
🤖Disallow AI bots
Nested border radius
TypeScript JSON type
⚛React.forwardRef
🎣useRef
📰@font-face
🏋️♂️font-weight
CSS font-stacks
⓫Eleventy
Nunjucks
🔤Text selection
Svelte
AI prompts
📦npm package versions
Idiot-proof Git Rebasing
CSS logical properties and values
vh, svh, lvh, and dvh
Hyphens and dashes
👓:focus-visible
💦Fluid typography
🏎️Fastest Google Fonts
✂️VS Code Snippets
🤷♂️JS body class
Disable dark mode for specific Mac apps
Make a directory if none exists
🥣Mix blend mode
⚛RenderIfRole
⚛useToggle React Hook
VIM cheatsheet
Form autofill attributes
⚓️Better link underlines
👆CSS cursors
🍱CSS Grid
⚡Deno
GitHub Actions
Shiki Twoslash
🐳Docker
⚛Conditionally render on the client or server
Run npm script from another directory
🧪Jest globals
Changing the default text editor on macOS
📖Mock React Router location inside Storybook stories
TypeScript catch block errors
Vercel Serverless functions
⚛Formik
🗣Quotation marks in different countries
⚛React Query with GraphQL
SQL
Custom inclusive/accessible Theme UI Button
Firebase
Plop
📟Command line tools
Gatsby
CSS scroll-behavior
Check if JavaScript array is empty
🔗Make a button element look like a link
Aspect ratio
Scroll-margin-top
Git branching strategies
🦉The “Lobotomised Owl” Selector
♿Showing/hiding content
⭕️CircleCI
iOS Safari bug
⚛SSR
HTTP Methods
Get selected text
Apollo GraphQL
🔘Better mobile form inputs
🎣Client-only React
Schema.org structured data
Get file size for all files in directory
🥱Async load CSS
Rainbow links
💄Styling siblings on hover
🙅Big list of naughty strings
🔢Fixed-width numbers
Handling Long Words and URLs (Forcing Breaks, Hyphenation, Ellipsis, etc)
Opengraph metacrap
😋Cutting the mustard
💵Clear DNS cache
🕺Classes
📜Create local self-signed certificate
🧼Cleanup / optimise computer
🕶CSS Filters
👍Favicons
🖼Picture element
👮♂️Node Security
Redux concepts
Redux Saga
CSS environment variables
Destructuring
🛂Crypto
ES Module import/export syntax
ES6 templating
🎬HTML Video