Developer cheat sheets

17 reference cards and 337 copyable lines for CSS, JavaScript, TypeScript, git, bash and HTTP. Search everything at once, click a row to copy it, or open a sheet for the full grouped reference.

337 entries across 17 sheets

Flexbox

One-dimensional layout along a main axis.

All 17 entries

CSS Grid

Two-dimensional layout with rows and columns.

All 18 entries

CSS selectors

Combinators, pseudo-classes and modern selector syntax.

All 23 entries

Tailwind v4

CSS-first configuration and modern utilities.

All 17 entries

Regex

Character classes, quantifiers, groups and lookaround.

All 23 entries

JS arrays

Modern array and object methods worth remembering.

All 18 entries

Async & promises

Combinators, cancellation and error handling.

All 15 entries

TypeScript types

Utility types, narrowing and generics syntax.

All 20 entries

Git

Branching, rewriting history and getting unstuck.

All 21 entries

Shell & bash

Pipes, expansion and text processing one-liners.

All 21 entries

npm & package.json

Dependency commands and semver ranges.

All 20 entries

HTTP status codes

What each response code actually means.

All 21 entries

HTTP headers

Caching, CORS and security headers.

All 18 entries

HTML entities

Escapes, punctuation, arrows and symbols.

All 24 entries

Key codes

KeyboardEvent values for shortcuts and handlers.

All 19 entries

Accessibility

ARIA, focus management and WCAG thresholds.

All 22 entries

Markdown

CommonMark syntax plus GitHub flavoured extras.

All 20 entries

Cheat sheet questions

Are these cheat sheets free to use?
Yes. Every sheet on HatScripts is free, needs no account and works offline once the page has loaded. Copy anything you find useful into your own notes or docs.
How do I copy a single line?
Click any row and the code on the left is copied to your clipboard. A confirmation toast shows exactly what was copied.
Can I download a whole sheet?
Open any sheet page and use “Copy as Markdown”. That gives you the full grouped reference ready to paste into a README, a wiki page or your editor.
Is anything sent to a server?
No. The sheets are static data bundled with the page and the search runs entirely in your browser. Favourites are stored in local storage on your own device.