CodeScript

Snippets

Small, focused, copy-paste-ready code for the problems that come up in almost every project — with an explanation of what each snippet does and why.

Coming soon

What to expect

  • JavaScript & TypeScript

    Debounce, deep clone, array grouping, and other utilities people rewrite from scratch.

  • React hooks

    useDebounce, useLocalStorage, useClickOutside, and other patterns worth not reinventing.

  • CSS layout

    Centering, sticky footers, grid patterns, and the fixes for the layout bugs everyone hits.

  • Python

    List/dict comprehensions, file handling, and common one-liners with plain-English explanations.

  • Bash

    Loops, argument parsing, and scripting patterns for everyday automation.

  • SQL

    Pagination, upserts, and query templates for problems that come up in almost every schema.

This section is actively being built. Check back soon, or explore the full tool library in the meantime.