kristoff
banner
kristoff.sh
kristoff
@kristoff.sh
kristoff.sh
I'm a software engineer in Bozeman, Montana! I'm sinking my teeth into Elixir + genAI and looking for others who are like minded! My other interests include Magic the Gathering, Improvisation, Yoga, the Cosmere, POE, Godot, and Rock Climbing.
TIL how to sort dates in elixir. The 'Date' piece is the key to comparing dates.

Enum.sort([~D[2019-12-31], ~D[2020-01-01]], {:desc, Date})

Here's it in action; sorted blogs at kristoff.sh

credit: significa.co/blog/elixir-...

#ElixirLang
March 31, 2025 at 5:40 PM
I just added blogs to my personal website kristoff.sh

This was tricky because because I'm rendering my markdown using Earmark from a file at runtime, not cached atm. To find this file I had to use this beautiful line of code.

#ElixirLang
March 31, 2025 at 3:46 AM
I made an assistant REPL which retains state! This loop updates a simple context object which stores previous assistant and user turns! The program also respects important commands like 'quit' and 'inspect' to exit and look at previous turns.

gist: gist.github.com/Gearhartlove...

#AI #Claude
March 2, 2025 at 3:58 PM
Anthropic's brand is super clean and attracted me almost instantly. It feels soft, smart, and approachable. I set up their a Console account, bought 5$ worth of tokens, and used their Python SDK this morning to send in a prompt. I actually got an output back which feels amazing!!! ✨
February 27, 2025 at 2:40 PM
New handle, who's this 😅 !

It was actually really easy to change, happy to have my website as my handle!
February 22, 2025 at 1:37 PM
I'm finally doing elixir things! I created a GenServer to store my project info for my website. I can query the server for favorites or chronologically sorted projects.

I'm then rendering the projects using HEEx HTML Extensions.

Little ⭐ = favorite project!

TODO hookup a LiveView 😅
February 21, 2025 at 6:47 AM
Working on a new site with Elixir & Phoenix (kristoff.sh). I'm having a ton of fun designing with tailwindcss and deploying with fly.io!

#ElixirLang
February 18, 2025 at 11:56 PM
Charlists in Elixir are fun 😅

#ElixirLang
January 1, 2025 at 6:19 PM
Who knew this was a thing. Pretty cool to see base 36 conversion making legible phrases.
December 23, 2024 at 12:27 AM
Did you know the 'phoenix_live_dashboard' dependency gives you this amazing visualization for free. It's bundled into all new phoenix project by default and turned on in dev mode. Really fantastic internals display! Simply go to /dev/dashboard and check it out!

#Phoenix #Elixir
December 14, 2024 at 3:10 PM
My first Phoenix web app is a Pathfinder 2e combat encounter generator. It supports the first bestiary of monsters, a party of the same level, as well as typical scenarios!

I had a great time working on this over 3 weeks and deploying on fly.io

link: goblin-fight-club.fly.dev

#Elixir #Phoenix
December 13, 2024 at 9:42 PM
I DID IT. I have one of each story card (mix of alt-arts and foilS) INCLUDING HERALDS!

Herald number seven was by far the hardest. Legit talked to everyone in the convention center.

Loved this event, really brought everyone together!
December 7, 2024 at 2:17 AM