I just got rank 17 on "Calorie Counting" - Day 1 - Advent of Code 2022 #AdventOfCode https://adventofcode.com/2022/day/1
@jhawthorn Beat me by 8 seconds!
@jhawthorn I did lose a second or two since I realized at T-1 or -2 that I wasn’t logged in. 🤦♂️
@alpha I saw! I skipped the test input and just used irb which always stresses me out but it paid off this time 😌
@jhawthorn I could probably optimize my workflow a bit. I use
p ARGF.(...) and have a second tmux pane that I flip to that has
pbpaste | ruby day_xx.rb in the history. Now that I say that, I should totally use
@jhawthorn Really want to see your solution, here’s mine! https://social.kejadlen.dev/notice/AQ9X9JVl5vCLeWm09I
@alpha screenshot of irb window 😅
@jhawthorn Bwahahaha, literally the only difference is
.last(3), I love it.
And TIL about
Array#last(n), so thank you for that!