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 May 4, 2026 15:03
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 April 1, 2026 09:01
Custom Material Icon Folder ( customize folder icons vscode material theme)
tags vscode, material,customize folder icons vscode material theme
title How to add custom folder icon in Material icons

Steps to add custom folder icon in Material icons

Go to Settings.json file