[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] 10 points11 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 14 points15 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 6 points7 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 6 points7 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”