Code Snippets

Short code for discrete problems which can be copied and pasted.

Name
Description
useChartDimensions
A responsive React hook for managing d3.js chart dimensions.
React
03-18-2025
Dark Mode
Setting up dark mode to nextjs app
NextJs
04-11-2024
Higher Order Function with Auth
Higher order function with authentication
React
03-15-2024
useIsMounted
React hook to check if component is mounted
React
05-11-2023
Animated Background Shapes
Create blurry, animated shape effect with combination of CSS filters, mix-blend-mode and custom animations in tailwindcss.
Tailwind
01-19-2023
Debounce
Restrict the calling of a function by delaying the execution
Javascript
07-11-2022
Enable Hyper-V for Windows 10 Home
It's a shame that Hyper-V is not available for windows 10 home edition. Here's a hack to enable it.
TIL
08-24-2021
Tailwind Widgets
Tooltip, search form, animations in tailwind
Tailwind
05-02-2021
List Python Class Members
List all members of a Python class
Python
03-15-2021

Rows per page

Page 1 of 1