Skip to content

Instantly share code, notes, and snippets.

@tnn4
tnn4 / build-good-habits.md
Last active September 20, 2025 10:47
how do you build good habits
How do you build a habit?

Hint: Morning or fresh

Do the behavior in the morning or when you are fresh from rest.

@tnn4
tnn4 / motivation.md
Last active September 19, 2025 17:28
motivation

How do you get motivated?

Slow down and reflect

Understanding oneself?

Self-reflection

Look at yourself

@tnn4
tnn4 / journal_analysis.py
Last active September 3, 2025 22:07
journal analysis
# Export onenote section to pdf
# py -m venv venv-dir
# . ./venv-dir/scripts/activate
pdf_f="Gratitude Journal.pdf"
def process_pdf_to_text(pdf):
# pip install --upgrade pymupdf
import pymupdf
@tnn4
tnn4 / oppenheimer-interview.md
Last active August 25, 2025 03:22
something to mull over
@tnn4
tnn4 / haiku-cherry-blossom.md
Created August 10, 2025 19:19
cherry blossom haiku

cherry blossoms bloom /

a week flies by in a flash /

cherry blossoms wilt

@tnn4
tnn4 / want-vs-should.md
Last active June 25, 2025 16:36
What You Want vs What You Should

How do we distinguish between what we want and what we 'should' do?

But how do you know what you should do?

That depends on your overall goals.

But your goals are going to change on your current circumstances.

So you need to work with invariants. What are your values? Your values don't change easily because you truly believe in them.

@tnn4
tnn4 / compile-love.sh
Last active May 27, 2025 22:29
love compilation fedora
git clone https://github.com/love2d/love.git
cd love
# build essentials
cmake make automake gcc gcc-c++ kernel-devel
# missing sdl3
sudo dnf install SDL3-devel
# missing freetype
sudo dnf install freetype-devel
@tnn4
tnn4 / mk-symlinks.sh
Last active May 27, 2025 21:44
remove or make symlink script
@tnn4
tnn4 / README.md
Last active May 7, 2025 00:39
circle class example in love

Requires love 11.5.

Put files in a directory then run love path/to/directory

dir
  main.lua
  classic.lua