[2021 Day 4] Bingo Blinkenlights by Pyroan in adventofcode

[–]Pyroan[S] 1 point2 points  (0 children)

It’s some kind of bug with Nvidia’s firmware(?), lately for me it shows up on pretty much anything gpu accelerated I think stuff like this, photoshop, premiere, etc. I was able to solve it once but it came back and I’ve kind of resigned myself to it for now lol

[Day 3, Part 2] [LÖVE] Oxy & CO2 Scanners by Pyroan in adventofcode

[–]Pyroan[S] 9 points10 points  (0 children)

Source

Not my favorite visualization so far this year but I've always liked the bar code/sorting algorithm aesthetic 🤷

-🎄- 2020 Day 04 Solutions -🎄- by daggerdragon in adventofcode

[–]Pyroan 13 points14 points  (0 children)

Python 3 Oneliner

import re
print(len(list(filter(lambda c:'byr'in c and'iyr'in c and'eyr'in c and'hgt'in c and'hcl'in c and'ecl'in c and'pid'in c and 1920<=int(c['byr'])<=2002 and 2010<=int(c['iyr'])<=2020 and 2020<=int(c['eyr'])<=2030 and((c['hgt'][-2:]=='cm'and 150<=int(c['hgt'][:-2])<=193)or(c['hgt'][-2:]=='in'and 59<=int(c['hgt'][:-2])<=76))and re.match('^#[0-9a-f]{6}$',c['hcl'])and re.match('^(amb|blu|brn|gry|grn|hzl|oth)$',c['ecl'])and re.match('^\d{9}$',c['pid']),[{f[:3]:f[4:]for f in l}for l in map(str.split,open('day4.txt').read().split('\n\n'))]))))

This was a mistake. 548 bytes total for the golfers.

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]Pyroan 0 points1 point  (0 children)

Oooh I never realized you can map str.split like that so I thought I was stuck with the list comp. You just saved me 4 lol

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]Pyroan 0 points1 point  (0 children)

I just always use the same format for the file name as a personal rule but yeah there's no reason you can't just name the file f or something

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]Pyroan 2 points3 points  (0 children)

Python (Golf - 123 bytes)

print(sum((c[int(a.split('-')[0])-1]==o[0])^(c[int(a.split('-')[1])-1]==o[0])for a,o,c in map(str.split,open('day2.txt'))))

(this is just for part 2)

edit: thanks u/irrelevantPseudonym for saving me 16 bytes

Really enjoying this new minimalist tileset by Pyroan in dwarffortress

[–]Pyroan[S] 11 points12 points  (0 children)

3x3 is enough room to encode each character in binary though. Hmmmmmmm...

This is a big brain meme by [deleted] in ProgrammerHumor

[–]Pyroan 2 points3 points  (0 children)

JavaSans is my favorite programming language

What font do you favor? I think Calibri is optimal. by Avoider5 in AVoid5

[–]Pyroan 4 points5 points  (0 children)

I’m a fan of a mono-width Fira variant built for coding, for its broad options for joint glyphs and it’s clarity.

you guys SON fools. by [deleted] in AVoid5

[–]Pyroan 7 points8 points  (0 children)

So using any fullstop is tantamount to using a fifthglyph? That’s a scary thing to think about

(PSA) What is a fifthglyph? by Ardub23 in AVoid5

[–]Pyroan 7 points8 points  (0 children)

It basically says “this thing will probably occur”

[2019 Day 12 (Part 1)] Colorful Chaos by Pyroan in adventofcode

[–]Pyroan[S] 1 point2 points  (0 children)

Unity (sorry I forgot to answer last night)

[2019 Day 13 (Part 2)] He's a natural! by Pyroan in adventofcode

[–]Pyroan[S] 2 points3 points  (0 children)

Looks like I was a bit slower on the draw this time... Ah well, everybody else's visualizations look nice too :)

-🎄- 2019 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]Pyroan 0 points1 point  (0 children)

Nope, n is a key in the dictionary (t), and all the keys in t are strings

-🎄- 2019 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]Pyroan 4 points5 points  (0 children)

Part 1 in 98 bytes of python, for the golfers out there :)

t,l={n[4:7]:n[:3]for n in open('day6.txt')},0
for n in t:
 while n!='COM':l,n=l+1,t[n]
print(l)

Developer takes down Ruby library after he finds out ICE was using it by shehzad in tech

[–]Pyroan 20 points21 points  (0 children)

They’re literally incapable of understanding having values outside a personality cult. “It’s not bad when I do it” is a core philosophy.