Skip to content

Instantly share code, notes, and snippets.

View acatzk's full-sized avatar
:octocat:
nothing changes if nothing changes

acatzk

:octocat:
nothing changes if nothing changes
  • Earth
View GitHub Profile
@mkcode
mkcode / route.ts
Last active April 7, 2025 11:24
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 May 23, 2025 04:03
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit ๐ŸŽ‰ :tada:
Version tag ๐Ÿ”– :bookmark:
New feature โœจ :sparkles:
Bugfix ๐Ÿ› :bug:
  • ๐ŸŽจ 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