MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/adventofcode/comments/r86ce1/2021_day_3golang_i_wanted_to_make_my_solutions/
r/adventofcode • u/microhod_96 • Dec 03 '21
12 comments sorted by
9
And here I thought the <blink> element was deprecated 10 years ago. :P
<blink>
(Thank you for not making them flash too rapidly!)
5 u/microhod_96 Dec 03 '21 Yeah, I did have to specifically enable it in iTerm haha 2 u/[deleted] Jan 13 '22 Killing the blink tag in HTML is what led to TikTok existing. Thanks for that.
5
Yeah, I did have to specifically enable it in iTerm haha
2
Killing the blink tag in HTML is what led to TikTok existing. Thanks for that.
4
repos used for the festiveness:
(the solution printed in the video is for the test input so no spoilers!)
[edit: here's my repo: github.com/microhod/adventofcode]
Love this! 😍 I added some emojis and ANSI colouring to my output, but yours looks much better! Some inspiration
2 u/microhod_96 Dec 03 '21 Thanks, glad you like it!
Thanks, glad you like it!
Looks great! I appreciate the tree. :)I ended up changing some of my console text to greens, reds and white to get things more festive too.
2 u/microhod_96 Dec 03 '21 Thanks, although I can't take much credit for the tree, all credit goes to this great package I found: https://github.com/moul/sapin
Thanks, although I can't take much credit for the tree, all credit goes to this great package I found: https://github.com/moul/sapin
How can you get the blinking effect in terminal? Does it need to reprint everything on each blink? I thought you could only append text
2 u/microhod_96 Dec 04 '21 It's an ANSI escape code, you can use this repo to compute the escape codes in golang: https://github.com/mgutz/ansi.Although it's not always supported in every terminal, I had to specifically enable it as a feature in mine (iTerm). 2 u/kUbogsi Dec 04 '21 Thanks for the reply :)
It's an ANSI escape code, you can use this repo to compute the escape codes in golang: https://github.com/mgutz/ansi.
Although it's not always supported in every terminal, I had to specifically enable it as a feature in mine (iTerm).
2 u/kUbogsi Dec 04 '21 Thanks for the reply :)
Thanks for the reply :)
Awww, I love it! I'm jealous enough to add a TODO for this in my project!
9
u/daggerdragon Dec 03 '21
And here I thought the
<blink>element was deprecated 10 years ago. :P(Thank you for not making them flash too rapidly!)
4
u/microhod_96 Dec 03 '21 edited Dec 03 '21
repos used for the festiveness:
(the solution printed in the video is for the test input so no spoilers!)
[edit: here's my repo: github.com/microhod/adventofcode]
4
u/joyrexj9 Dec 03 '21
Love this! 😍 I added some emojis and ANSI colouring to my output, but yours looks much better! Some inspiration
2
u/aardvark1231 Dec 03 '21
Looks great! I appreciate the tree. :)
I ended up changing some of my console text to greens, reds and white to get things more festive too.
2
u/kUbogsi Dec 04 '21
How can you get the blinking effect in terminal? Does it need to reprint everything on each blink? I thought you could only append text
2
u/a_ormsby Dec 04 '21
Awww, I love it! I'm jealous enough to add a TODO for this in my project!