Posts by jeff@phpc.social
 (DIR) Post #AQAZ4jxo3jBOKvzjRQ by jeff@phpc.social
       2022-12-01T16:21:18Z
       
       0 likes, 0 repeats
       
       @shadowfacts Great work on #Tusker! 👍 It's beautiful. The consolidated notifications really help cut down on noise, and the tag/public instance browsers make it easier to find interesting content. The prominent verified links in the recent update fixed my only issue. I assume the lack of iOS notifications are a Testflight limitation, but it's the only reason I still have any other Mastodon apps installed.
       
 (DIR) Post #AccF2YNA0qtCOo119s by jeff@phpc.social
       2023-12-09T00:10:08Z
       
       0 likes, 0 repeats
       
       @drgeraint I was just happy I noticed the lcm/primes trick right away this time (from past years).I assume everyone's inputs have intervals that are multiples of primes, with prime length instructions.In your code, divide your intervals by your path length. LCM those, then multiply by path length. Avoids overflow.I had to write a quick wrapper for LCM on more than 2 ints in PHP.let $lcm = first numberforeach(subsequent number $n) $lcm = lcm($lcm, $n)
       
 (DIR) Post #AoeXv1hKN1B1lcwtmK by jeff@phpc.social
       2024-12-02T22:58:25Z
       
       0 likes, 1 repeats
       
       I've completed "Historian Hysteria" - Day 1 - Advent of Code 2024 #AdventOfCode #pythonhttps://github.com/jstanden/advent-of-code-python/blob/main/2024/day1.ipynb
       
 (DIR) Post #AogM6OuTb9nToGfzv6 by jeff@phpc.social
       2024-12-03T02:54:40Z
       
       0 likes, 1 repeats
       
       I've completed "Red-Nosed Reports" - Day 2 - Advent of Code 2024 #AdventOfCode #pythonMap, reduce, filter, map, reduce, filter...https://github.com/jstanden/advent-of-code-python/blob/main/2024/day2.ipynb
       
 (DIR) Post #AogMCrRGRRhI1n5pYm by jeff@phpc.social
       2022-12-09T01:17:35Z
       
       0 likes, 1 repeats
       
       I loaded the Advent of Code Day 8 grid data using Lua in Roblox and rendered the forest of tree heights.The density gets a lot thicker to the south east.This makes it easy to visualize that the best tree house placement is looking down over a sea of smaller trees rather than where most trees are tallest.This version really kept the kids' interest. The trees are just cylinder parts with spheres on top, using random color variations and sizes based on height.#AdventOfCode #Roblox #Lua
       
 (DIR) Post #AoiWuaB3MtaX5kuvQG by jeff@phpc.social
       2024-12-04T21:03:48Z
       
       0 likes, 0 repeats
       
       I've completed "Ceres Search" - Day 4 - Advent of Code 2024https://github.com/jstanden/advent-of-code-python/blob/main/2024/day4.ipynb#AdventOfCode #python
       
 (DIR) Post #AokeorIlyUmaPlEHYW by jeff@phpc.social
       2024-12-05T23:51:32Z
       
       0 likes, 0 repeats
       
       I've completed "Print Queue" - Day 5 - Advent of Code 2024Python's `defaultdict` and `cmp_to_key` to the rescue.https://github.com/jstanden/advent-of-code-python/blob/main/2024/day5.ipynb#AdventOfCode #python
       
 (DIR) Post #AokfHtXYjO8fkrzVVQ by jeff@phpc.social
       2024-12-06T00:07:07Z
       
       0 likes, 0 repeats
       
       @drgeraint Thanks! I was hoping I could use the intersections later in the comparator, and it worked surprisingly well. 😀