Skip to content

Instantly share code, notes, and snippets.

View aswnss-m's full-sized avatar
🌎
Working

Aswin Lal M aswnss-m

🌎
Working
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;
};
@JakubPetriska
JakubPetriska / quotes.csv
Last active December 9, 2025 12:49
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.