advent of code
Go to file
hedy 19e67c1366
2022-02: Add lua solution
2023-04-09 23:01:20 +08:00
2015 Add 201{5..9} directories 2020-12-31 10:24:32 +00:00
2016 Add 201{5..9} directories 2020-12-31 10:24:32 +00:00
2017 Add 201{5..9} directories 2020-12-31 10:24:32 +00:00
2018 Add 201{5..9} directories 2020-12-31 10:24:32 +00:00
2019 Add 201{5..9} directories 2020-12-31 10:24:32 +00:00
2020 Finish 2020 Day 8 (yesterday) 2022-12-07 09:50:00 +08:00
2021 Add 2021 Day 2 part 2 2022-12-01 17:18:33 +08:00
2022 2022-02: Add lua solution 2023-04-09 23:01:20 +08:00
bin Add answers.md support to the scripts 2022-12-24 15:25:15 +08:00
skel Better template for python 2022-12-22 16:41:44 +08:00
.editdesc.vim Add answers.md support to the scripts 2022-12-24 15:25:15 +08:00
.envrc Full blown AoC new puzzles setup script let's go! 2022-12-23 20:53:09 +08:00
.gitignore Add 2022 Day 13 2022-12-14 15:36:30 +08:00
LICENSE Switch to WTFPL 2020-12-31 07:09:12 +00:00
README.md Update readme 2022-12-23 21:52:47 +08:00
requirements.txt Finish 2022 Day 3 2022-12-03 13:30:52 +08:00

README.md

Advent of Code \o/

is this some leaderboarder's highly-optimized, highly-readable solutions?

nope.

I try to optimize some when I have free time, golf solutions aren't even the best. do you like code-golfing? check out this repo!

long, modular solutions are always documented, but rarely (if not at all) unit-tested

do I have solutions in your favorite programming language?

take a look at the language usage breakdown, if the git forge you're reading this from supports it.

if it doesn't, then there's a good chance that you're a shell literate! cook up a oneliner to analyze my file types here...

find 20?? ! -name '*.md' ! -name '*.txt' -type f | sed 's/.*\.//' | sort | uniq -c | sort -bnr

😉

I'm sure you'll find ways to improve mine

oh by the way, the .jpg files are probably screenshots of Apple Shortcuts solutions (mostly 2021)

do I have a neat setup for input and submitting?

yeah, but not exactly neat

planning on rolling my own local package (for all langs!! why not :P) in the near future, which covers both of their functionalities

do I have a neat script or templates which I use to create new directory structures?

yup!

check out bin/new

templates at skel/

pretend this is actual installable software and document how a user should set it up

prereqs

  • python
  • cargo
  • any other language you wish to run

install 'dependencies' (lol)

  • https://github.com/scarvalhojr/aoc-cli
  • set up direnv
    • set $AOCROOT to the path to this git repo in the .envrc of the parent dir of the repo
    • check envs using bin/new --help
  • create virtualenv
  • activate virtualenv
  • install from requirements.txt
  • start solving new puzzles as they come, using bin/new

am I going to (eventually) do all the previous puzzles I had missed?

perhaps.

the plan (in addition to 2022 daily)
  • 2020 (python) days 1-5

  • 2020 (python) days 6-10

  • 2020 (python) days 11-15

  • 2021 (python) days 1-5

  • 2020 (golang) days 1-5

  • 2020 (golang) days 6-10

  • 2020 (golang) days 11-15

  • 2021 (golang) days 1-5

  • 2021 (shell) days 1-5

  • 2020 (java) days 1-5

  • 2021 (python) days 6-10

  • 2021 (python) days 11-15

  • 2021 (golang) days 6-10

  • 2021 (golang) days 11-15

  • 2020 (shell) days 1-5

  • 2020 (lua) days 1-5

  • 2021 (lua) days 1-5

  • 2020 (python) days 16-20

  • 2020 (golang) days 16-20

  • 2020 (python) days 20-25

  • 2020 (java) days 16-20

  • 2020 (golang) days 20-25

wow, you're still reading?