Code Snippets
These are a collection of code snippets I've used in the past and saved. They include React hooks, TypeScript tips, random CSS snippets and Node.js scripts.
These are a collection of code snippets I've used in the past and saved. They include React hooks, TypeScript tips, random CSS snippets and Node.js scripts.
A snippet to parse the git hash from the command line and add it as an environment variable to a Next.js app.
Nice looking radios and checkboxes with native css styling
A React hook that uses localStorage (or sessionStorage) to persist component state.
It's something you easily forget, but it's easy and looks so much better.
Add a stand with Ukraine banner using this TailwindCSS snippet
A bash script that deletes all local branches not found on the remote.
A snippet I use to setup the aliases and global git config on new machines.
Using jq to decode JWT tokens from the command line.
Stop using rm -rf node_modules, use Trash instead.
A git alias to show a standup log for the specified author