Skip to content

Instantly share code, notes, and snippets.

@joshg253
Last active December 3, 2021 01:08
Show Gist options
  • Save joshg253/e40a3200b4001891ed14a3b4a8eafe85 to your computer and use it in GitHub Desktop.
Save joshg253/e40a3200b4001891ed14a3b4a8eafe85 to your computer and use it in GitHub Desktop.
Advent of Code

Advent of Code 2021

https://adventofcode.com

Real Python - Advent of Code: Solving Your Puzzles With Python

https://realpython.com/python-advent-of-code/

Helpful article on getting started, and making things easier.

advent-of-code-data

https://pypi.org/project/advent-of-code-data/ https://github.com/wimglenn/advent-of-code-data

"Get your puzzle data with a single import"

> pip install advent-of-code-data

Log in via GitHub in Firefox (didn't work via ChrEdge...)

> aocd-token > (New-Item ~/.config/aocd/token -Force)

Then I was getting XXX errors, but still working on other PC...

Opened Explorer to C:\Users\username.config\aocd
Opened 'token', VSCode thought it was UTF-16, so changed to UTF-8 and saved, working now. (PowerShell issue?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment