CodeSnippets.dev

With CodeSnippets.dev, you can accumulate a personal collection of reliable code snippets and quickly inject them into your projects.

Instead of digging through old source code or repeatedly googling the same thing, create a CodeSnippet.

The minutes you save with each snippet use can add up to hours per week. But more importantly, CodeSnippets will save you TONS mental energy.

CodeSnippets will save you TONS mental energy

What is it?

CODE_SNIPPETS = GITHUB_GISTS + SEXY_WEB_APP + VS_CODE_EXTENSION

Example Use Cases

At some point during every web development project, I end up googling "javascript get querystring value" and copy and paste the same StackOverflow answer. This is the perfect candidate for a CodeSnippets.dev snippet.

The snippet posibilities are endless and personal, but here are some examples to get the wheels turning:

  • The javascript DOM utility functions you copy and paste across all your projects.
  • The 3 lines of CSS to do a fade transition that you always have to Google.
  • The litte tweaks you need to do a CORS request for JSON with the Fetch API.
  • Storing a MongoDB map-reduce example, so you don't have to completely relearn it next time you need it again.
  • The React component boilerplate, one for class components and one for function components.