Skip to content

Instantly share code, notes, and snippets.

View alexgeis's full-sized avatar

Alex Geis alexgeis

View GitHub Profile
@alexgeis
alexgeis / next13-navbar.md
Last active January 23, 2023 18:13
NavBar + Hamburger Menu w/ Active Link Styling in Next.js 13

NavBar + Hamburger Menu w/ Active Link Styling in Next.js 13

This gist is a guide for setting up a navigation bar (with working hamburger menu) and active link styling in Next.js 13.
(it assumes you have already installed version 13+ of Next.js)

Updating your navbar from a previous version of Next.js should be fairly straightforward - all queries that arise during this process should be directed to the (excellent) Next.js 13 beta docs.

I have used "TODO" markers to indicate the sections that require updates for your specific application.

@alexgeis
alexgeis / Jest-Vite-React-TypeScript.md
Last active May 29, 2025 04:02
Jest w/ Vite + React + Typescript
@alexgeis
alexgeis / regex-tut-gist.md
Last active April 1, 2022 22:50
Regex Tutorial

Regex Tutorial - Matching a URL

This gist provides a tutorial on regular expressions (regex), specifically using regex to match a URL.

Summary

Regular expressions use a specific sequence of characters to define a search pattern or validate data.

Different requirements will utilize different regex sequences. For example, the regex below matches a valid URL: