Chizi Victor
Snippets
Bunch of stuff I keep forgetting no matter how much I use em.
View your battery's current state and statistics on Linux.
Jan 2025
Get the lines of code (LOC) count in a git repository using the cli
Jan 2025
Cron expressions crash course, cos no way you memorising this.
Jan 2025
utiltity hook to add debounce behavior to an existing function
Jan 2025
Config files for deploying SvelteKit apps with the adapter-static.
Dec 2024
Shorten the time it takes to kill a background process.
Nov 2024
Reset/Restart the display manager on Linux
Jun 2024
Manage localStorage data realtime in React.
Apr 2024
Multistage Dockerfile for smaller image sizes in Next.js apps.
Apr 2024
Generate imageUrl for preview from image file input
Feb 2024
Backup dotfiles using gnu stow
Jan 2024
Workflow for using git worktrees
Dec 2023
Obtain credit/debit card type based on input.
Aug 2023
Set an opacity to an element using only the hex color code
Mar 2023
Create an <Element> that takes all the normal props of <element> and does extra stuff.
Dec 2022
Detect a click event outside a DOM element in react.
Oct 2022
Custom ReactJS hook for intersection observer API
Oct 2022
Hide Nav on scroll down and show on scroll up
Oct 2022
Loader component for page transitions in NextJS
Sep 2022
React custom cursor component
Sep 2022
Media query mixin for scss/sass projects
Sep 2022