Skip to content
HomeBlogSnippetsResume

Code Snippets

These are a collection of code snippets I've used in the past and saved. Some are Serverless Functions, which include set up instructions. Others are anything from random CSS snippets to Node.js scripts.

Card rotating on hover

Card rotating on hover

Creates a two sided card which rotates on hover.

Copy to clipboard

Copy to clipboard

Copies a string to the clipboard. Only works as a result of user action

CRUD API Route

CRUD API Route

For use with Next.js.

Get images

Get images

Fetches all images from within an element and puts them into an array.

hashBrowser

hashBrowser

Creates a hash for a value using the SHA-256 algorithm. Returns a promise.

HashNode

HashNode

Creates a hash for a value using the SHA-256 algorithm. Returns a promise.

Json to csv

Json to csv

Converts an array of objects to a comma-separated values

Menu on image hover

Menu on image hover

Displays a menu overlay when the user hovers over the image.

Mouse cursor gradient

Mouse cursor gradient

A hover effect where the gradient follows the mouse cursor.

Parse cookie

Parse cookie

Parses an HTTP Cookie header string, returning an object of all cookie name-value pairs.

Revue

Revue

Get all subscribers.

Revue

Revue

Subscribe to a newsletter.

Spotify

Spotify

Show what you're listening to.

Sticky Nav

Sticky Nav

Create a fixed navbar.

Tailwind CSS Snippets

Tailwind CSS Snippets

🌟 Unleash web magic with Tailwind CSS, a lightning-fast framework! 💪 Dazzling snippets.

Navigator

Navigator

Checks if the client is online or offline.

Use SSR

Use SSR

Checks if the code is running on the browser or the server.

UUID genertor

UUID genertor

Generates a UUID in a browser.


Not Playing

–

Spotify

Home
TweetsSnippets
TwitterGitHubYouTube