Skip to content

Instantly share code, notes, and snippets.

View ben-dev10's full-sized avatar
💭
✍️ active

nard ben-dev10

💭
✍️ active
View GitHub Profile
@t3dotgg
t3dotgg / try-catch.ts
Last active February 8, 2026 12:54
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;
};
@rupeshtiwari
rupeshtiwari / material-icon.md
Last active February 11, 2026 08:50
Custom Material Icon Folder ( customize folder icons vscode material theme)
tags title
vscode, material,customize folder icons vscode material theme
How to add custom folder icon in Material icons

Steps to add custom folder icon in Material icons

Go to Settings.json file