Skip to content
BlogAboutHome

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.

YouTube

YouTube

Get channel statistics.

Update MDX Meta

Update MDX Meta

Change last updated time.

Stripe

Stripe

Accept a payment.

Sticky Nav

Sticky Nav

Create a fixed navbar.

Spotify

Spotify

Show what you're listening to.

Spotify

Spotify

List your top tracks.

SendGrid

SendGrid

Send an email to a user.

Search

Search

React Context hook for search values.

MDX Table of Contents

MDX Table of Contents

For use with Next.js.

Mailgun

Mailgun

Send an email to a user.

MacOS Nice UX Commands

MacOS Nice UX Commands

These Terminal Commands change the way you use Mac OS

Loading Progress

Loading Progress

React Hook for nprogress.

Google Sheets

Google Sheets

Create an entry in a sheet.

Google Analytics

Google Analytics

Page views over a given range.

Firebase

Firebase

Read data from Realtime Database.

useEmailQueryParam()

useEmailQueryParam()

Parse an email from a URL.

CRUD API Route

CRUD API Route

For use with Next.js.


Not Playing

–

Spotify

HomeAboutBlog
TwitterGitHubInstagram
SnippetsAdmin