Hi! Im ZanderStylised (pixellated) picture of Zander, I make web things

Code Notes

TILs, snippets—my digital code garden

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