BlogsProjectsSnippetsAbout
K

Code Snippets

These are collections of code snippets I have used in some of my projects and saved them for easy use in future. These would be relatively short snippets and some might require setup instructions.

Debounce in JavaScript

Debounce in JavaScript

Create a simple reusable debounce function

Valid HTTP URL

Valid HTTP URL

Check if a string is a valid HTTP URL

Gradient Text using TailwindCSS

Gradient Text using TailwindCSS

Create a gradient text using TailwindCSS

Loading Progress Indicator

Loading Progress Indicator

React hook to use NProgress with Next.js router.

Merge TailwindCSS Classes

Merge TailwindCSS Classes

Simple utility function to merge tailwind classes


General

  • Home
  • About
  • Blogs
  • Projects
  • Snippets

Extras

  • Newsletter
  • Uses
  • Resume
  • Tweets
  • Tags
  • Privacy Policy

Subscribe to our newsletter

The latest articles, and resources, sent to your inbox directly!

mailgithubtwitterlinkedinyoutuberss

© 2023 Akash Rajpurohit