Skip to content

Instantly share code, notes, and snippets.

View letelete's full-sized avatar
:fishsticks:
hackin' around

Bruno Kawka letelete

:fishsticks:
hackin' around
View GitHub Profile
@letelete
letelete / build-path.ts
Last active March 19, 2025 11:45
Builds a path utility that allows replacing parameters in a given path template.
type PathParams<T extends string> =
T extends `${infer _}:${infer Param}/${infer Rest}`
? { [K in keyof PathParams<Rest> | Param]: string }
: T extends `${infer _}:${infer Param}`
? Record<Param, string>
: void;
/**
* Builds a path utility that allows replacing parameters in a given path template.
*
@ricealexander
ricealexander / emoji-list.md
Last active March 31, 2025 18:44 — forked from rxaviers/gist:7360908
Comprehensive list of GitHub-supported emojis
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 6, 2025 06:19
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@vkostyukov
vkostyukov / statuses.md
Last active May 15, 2025 19:29
HTTP status codes used by world-famous APIs
API Status Codes
[Twitter][tw] 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504
[Stripe][stripe] 200, 400, 401, 402, 404, 429, 500, 502, 503, 504
[Github][gh] 200, 400, 422, 301, 302, 304, 307, 401, 403
[Pagerduty][pd] 200, 201, 204, 400, 401, 403, 404, 408, 500
[NewRelic Plugins][nr] 200, 400, 403, 404, 405, 413, 500, 502, 503, 503
[Etsy][etsy] 200, 201, 400, 403, 404, 500, 503
[Dropbox][db] 200, 400, 401, 403, 404, 405, 429, 503, 507