Skip to content

Instantly share code, notes, and snippets.

View acatzk's full-sized avatar
:shipit:
aaaaaaaaaaaa

acatzk

:shipit:
aaaaaaaaaaaa
View GitHub Profile
@mkcode
mkcode / route.ts
Last active June 28, 2024 21:52
How to setup Next App Router + Clerk + TRPC
// TRPC API endpoint
// src/app/api/trpc/[trpc]/route.ts
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import { type NextRequest } from "next/server";
import { env } from "~/env";
import { appRouter } from "~/server/api/root";
import { createTRPCContext } from "~/server/api/trpc";
import { getAuth } from "@clerk/nextjs/server";
"Walking on water and developing software from a specification are easy if both are frozen."
- Edward V Berard
"Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter."
- Eric S. Raymond
"Talk is cheap. Show me the code."
- Linus Torvalds
"In God we trust. All others must bring data."
@parmentf
parmentf / GitCommitEmoji.md
Last active June 28, 2024 10:47
Git Commit message Emoji
  • 🎨 when improving the format/structure of the code
  • 🚀 when improving performance
  • ✏️ when writing docs
  • 💡 new idea
  • 🚧 work in progress
  • ➕ when adding feature
  • ➖ when removing feature
  • 🔈 when adding logging
  • 🔇 when reducing logging
  • 🐛 when fixing a bug