Skip to content

Instantly share code, notes, and snippets.

@t3dotgg
t3dotgg / try-catch.ts
Last active April 16, 2025 02:23
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@ZacharyPatten
ZacharyPatten / readme.md
Last active February 3, 2023 15:58
GitHub Repository Checklist (C#)

GitHub Repository Checklist (C#)

Have a repository on GitHub? Planning on making a repository on GitHub? This checklist is intended to introduce you to various features that may help you make the most of your GitHub repository with specific recommendations for C# repositories.

Checklist

These are only suggestions.
They may not be appropriate for all repositories.
They are in no particular order.
Click each item to expand for more information.

@bmaupin
bmaupin / free-database-hosting.md
Last active April 15, 2025 03:44
Free database hosting
@dlaroe
dlaroe / CRS-4x12-ortholinear-layout.kbd.json
Last active October 13, 2023 16:45
CRS 4x12 ortholinear layout
[
{
"name": "CRS 4x12 ortholinear layout",
"author": "DRL https://github.com/qmk/qmk_firmware/tree/master/layouts/community/ortho_4x12/crs/",
"plate": false
},
[
{
"c": "#e8b0b0",
"a": 7
@zchee
zchee / actionlist.vim
Last active April 14, 2025 23:20
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>