This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
# See reddit post where people wanted to see it: https://www.reddit.com/r/adventofcode/comments/rgacln/2021_day_14_less_than_optimal_solution/ | |
# I just copy/pasted this from my input, instead of dealing with the input parsing. | |
poly = 'PBFNVFFPCPCPFPHKBONB' | |
pairs = {} | |
with open('input', 'r') as inp: | |
for line in inp: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
speedtest-cli | |
fastcli | |
adafruit-io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trees =[] | |
with open('input') as data: | |
for line in data: | |
trees.append([int(x) for x in line.strip()]) | |
red = [[]]*10 | |
grn = [[]]*10 | |
blu = [[]]*10 | |
def interp(val, xmin, ymin, xmax, ymax): |
OlderNewer