Skip to content

Instantly share code, notes, and snippets.

View aoc2020-day9.py
# read in aoc input
data = open("day9.in").read().strip().split('\n')
# setup vars to track
pre = 25
pos = 25
# solve for part 1
while True:
p1 = int(data[pos])
View ansi-colors,sh
#!/bin/bash
# https://misc.flogisoft.com/bash/tip_colors_and_formatting#colors
# TEXT COLOR
DEFAULT="\033[0m"
BLACK="\033[30m"
RED="\033[31m"
GREEN="\033[32m"
ORANGE="\033[33m"