Debounce Function
Throttle high‑frequency events by only invoking a function after it hasn’t been called for a specified delay.
A curated collection of the code fragments I find myself reusing across projects—utility functions, config setups, deployment scripts, and UI patterns. Each snippet is tagged, explained, and ready to copy-paste when speed matters more than ceremony.
Throttle high‑frequency events by only invoking a function after it hasn’t been called for a specified delay.
Safely create a deep copy of objects and arrays without affecting the original data.
Generate a comparator function to sort arrays of objects by a given key, ascending or descending.
Custom React hook to fetch data with loading and error state management.
Reusable React button component that shows a spinner when performing an async action.
Efficient Dockerfile for Node projects that caches dependencies and builds only once.
Automate Node project testing and build with a reusable GitHub Actions workflow.
Shell script to run tests with coverage and exit on failure.
Basic Nginx setup to proxy requests to a backend service and serve static files.
Quickly transform a JSON array of objects into a CSV file using Python.
Example .env file for configuring local development and production environments.
Set up a flexible logger with multiple transports for console and file outputs.
Define a consistent code formatting style with a simple .prettierrc file.
Simplify making GraphQL requests with a reusable fetch helper.