Skip to content

Instantly share code, notes, and snippets.

@t3dotgg
t3dotgg / try-catch.ts
Last active May 20, 2025 07:10
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;
};
@Voyrox
Voyrox / ColdTurkeyBlockerPremium.md
Last active November 18, 2024 17:44
Cold Turkey Blocker Premium Activator

Step one: Close cold turkey app and the minitray icon of coldTurkey

Create a file called ColdTurkeyBlockerPremium.py then open CMD to this dir.

import json
import sqlite3
import os
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.