Code Snippets
These are a collection of code snippets I have used in the past and want to share with you.
How to Check if an Element is in the Viewport in JavaScript
May 2024
How to get the current URL with JavaScript
Mar 2024
Common CSS Class Names
Oct 2023
Installing PostgreSQL on macOS
Oct 2023
Move cursor to the end of input
Mar 2023
Check if date is between two dates
Mar 2023
CSS - Custom text selection
Mar 2023
SQL countries table
Feb 2023
Remove Duplicates from an Array
Jan 2023