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 December 9, 2025 20:30
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 December 9, 2025 09:06
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