strigido's Avatar

strigido

@strigido.com

https://interactive.strigido.com I'll be posting about some of my hobbies (usually connected to science/programming). he/him

93
Followers
29
Following
41
Posts
15.11.2024
Joined
Posts Following

Latest posts by strigido @strigido.com

Post image

On the page, you can also convert the raster image into an SVG.
#svg

04.09.2025 17:03 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail
04.09.2025 17:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Self-counting pixels | Interactable Create images that display how many black pixels they have โ€” with those same pixels!

Inspired by a @standupmaths.bsky.social video from a month ago and the generator made by @christianp.mathstodon.xyz.ap.brid.gy, I decided to make my own webpage for generating messages with a chosen number of black pixels.

interactive.strigido.com/self-countin...

04.09.2025 17:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

I solved the second part by using flood fill + binary search.
The solution is found in 15 ms.
#AdventOfCode Day 18 Part 2

18.12.2024 23:49 ๐Ÿ‘ 8 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

I solved today's #AdventOfCode problem with flood fill, visualized below.

18.12.2024 23:06 ๐Ÿ‘ 8 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

#AdventOfCode Day 14 Part 2 was interesting - "find the tree".

I did it by tracking the number of robots that were adjacent to other robots. This number spiked when they formed a Christmas tree.

15.12.2024 23:49 ๐Ÿ‘ 13 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Exactly what I was thinking.

12.12.2024 23:21 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

And here's it running on an actual input:
#AdventOfCode

12.12.2024 23:17 ๐Ÿ‘ 9 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

Visualization of an algorithm for solving the first part of #AdventOfCode day 12:

12.12.2024 23:03 ๐Ÿ‘ 10 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

#AdventOfCode Day 10 - 2nd part visualized:

12.12.2024 00:16 ๐Ÿ‘ 10 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

#AdventOfCode Day 10 - 1st part visualized:

11.12.2024 23:39 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

and part 2:

11.12.2024 03:05 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

Here's a visualization of day 9 part 1:
(1 pixel = 1 block) #AdventOfCode

11.12.2024 03:04 ๐Ÿ‘ 6 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Most of these are done with Python using ImageDraw from the Pillow library.
Currently, I'm not publishing the source code. Honestly, it's nothing pretty to look at (It just needs to work). But I might publish all the source code on my GitHub later, when I'm done and make the final compilation video.

09.12.2024 12:40 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

#AdventOfCode 2024 | Day 8 | visualization of the second part:

09.12.2024 00:37 ๐Ÿ‘ 37 ๐Ÿ” 3 ๐Ÿ’ฌ 3 ๐Ÿ“Œ 0
Video thumbnail

#AdventOfCode 2024 - Day 8: Resonant Collinearity
Visualization of the first part:

08.12.2024 22:29 ๐Ÿ‘ 10 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

It looks like this year's ASCII art on the calendar page is going to be a big 10 for the ten years of Advent of Code!

08.12.2024 15:27 ๐Ÿ‘ 8 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

Something for today: a visualization of the algorithm I used for finding equations that could possibly be true:
#AdventOfCode

07.12.2024 16:37 ๐Ÿ‘ 9 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Nothing new from the problems themselves, but I have acquired new skills in doing visualizations in Python and Blender - super fun to see algorithms come to life!

07.12.2024 14:19 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

Part 1 of Day 6 #AdventOfCode

07.12.2024 12:51 ๐Ÿ‘ 9 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Maybe it's the way you're detecting loops? I used a set to store 3-value tuples (x, y, orientation). Every time the guard moves, you add to the set. If a tuple is already in the set, that means the guard has already been on that exact location facing the same way and is therefore stuck in a loop.

07.12.2024 03:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Even with that optimization, your solution would still take minutes to complete, so something big could probably be done more efficiently. My Python code took 12 seconds to complete.

07.12.2024 03:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

First of all, I only checked the coordinates the guard actually visits. Placing a new obstacle that isn't in the guard's way does nothing. That already eliminates around 70% of the possibilities.

07.12.2024 03:23 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Wow! This is cool!

07.12.2024 02:15 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

I was in a Blender mood today. Here's a little animation of today's example. #AdventOfCode

07.12.2024 02:04 ๐Ÿ‘ 10 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

A visualization of an algorithm running on the example for day 5 #AdventOfCode

07.12.2024 02:00 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Very cool!

06.12.2024 23:38 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I don't think I did anything particularly advanced today. Just a couple of dictionaries and sets.
I'm not really concerned (yet) about there potentially being a 90% faster algorithm. I'm going to save some of my mental energy for later, when the execution time is longer than a mouse click.

05.12.2024 16:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Yeah, I used a 3ร—3 sliding window approach for part 2, but I didn't make an animation.

05.12.2024 14:07 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Screenshot showing the Advent of Code calendar. The first five days all have two stars. 15 h 27 min 38 s is the time remaining until the puzzle on day 6 becomes public.

Screenshot showing the Advent of Code calendar. The first five days all have two stars. 15 h 27 min 38 s is the time remaining until the puzzle on day 6 becomes public.

I just completed "Print Queue" - Day 5 - Advent of Code 2024 #AdventOfCode

05.12.2024 13:35 ๐Ÿ‘ 9 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0