Skip to content

Instantly share code, notes, and snippets.

View jacktose's full-sized avatar

Jack Haden-Enneking jacktose

View GitHub Profile
@jacktose
jacktose / # perl - 2023-06-08_11-44-22.txt
Last active June 8, 2023 20:14
perl on "CentOS Linux release 7.9.2009 (Core)" - Homebrew build logs
Homebrew build logs for perl on "CentOS Linux release 7.9.2009 (Core)"
Build date: 2023-06-08 11:44:22
@jacktose
jacktose / aoc-2022-6.nthistle.py
Last active December 7, 2022 19:49
u/nthistle's rolling window solution for Advent of Code 2022/6, and u/P1h3r1e3d13's variations
# https://www.reddit.com/r/adventofcode/comments/zdw0u6/2022_day_6_solutions/iz3mu21/
# https://topaz.github.io/paste/#XQAAAQBAAwAAAAAAAAA7mkrvHeIvDZUizuO2LI0KXEPUFLLgeIPRqbv/z+nmNU7MYNHuAOqKaD9UwePzSwp6PCMKtAsVAgxfdclBU/ECGwhPZKq9BUR7o/Zmu+RIMPXoNzknSVbDlqPcEWb4XUG+o730qLQo1wzmnszMJK+r6NrEozSGFECms/XleM5xyuUD53rlAg75i0dcTOehtb1WruFsmuFwg2mVsqUGkAarZ91Z0S5nIRNpNzt4nm4Sd+ZspUOwMi1Jy+UlCSFTPNIQLfYwl6ASa24CiiwiY4ATuPdNdXtyCjLqxfqKFgfPqJLyeVkuHoC+PaTNlr2uRgIvqUXu69Xj3qp4HrDsdRhdSc5p9uEWfh3h9Ho1p/Jm/CQ5JN04MvoCgTXNe5MLr1WkhxA7Ms/bLsFdK6YyolhP9yXU8Y3WEWxhYavVBje+Lxs5P0MPZgRCwB/cUu3+cy7u4exW0KcagX5ibrMPumzB8hv+pNC2yo+b3ZXKxqXd7jKBvFQnlwRzusStU+uP/wTSg/TeaOv/8fwG+A==
with open("input.txt") as f:
s = f.read().strip()
# alternate approach for part 2
cur_window = {}