Skip to content

Instantly share code, notes, and snippets.

View pthieu's full-sized avatar
🙃

Phong Thieu pthieu

🙃
View GitHub Profile
@devvyn
devvyn / -chess-sandbox.ipynb
Last active November 17, 2021 23:20
chess-sandbox.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cjxe
cjxe / 1.md
Last active June 27, 2025 19:35
MacOS apps that enhance my productivity

⚠️ DISCLAIMER

My rule of thumb to integrate a new tool to my daily workflow is to wait until I Google a tool to solve one of my problems, that repeat frequently enough, and then integrate it into my workflow. So, I would treat this list as an "exploration" step, and download the tools which you think are useful to your workflow.

Productivity

@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 8, 2025 13:49
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
@t3dotgg
t3dotgg / try-catch.ts
Last active July 12, 2025 16:28
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;
};