{"id":37192751,"url":"https://github.com/stackus/advent-of-code","last_synced_at":"2026-01-14T22:22:16.656Z","repository":{"id":209788539,"uuid":"724752723","full_name":"stackus/advent-of-code","owner":"stackus","description":"https://adventofcode.com/ ","archived":false,"fork":false,"pushed_at":"2023-12-18T06:54:37.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T20:06:42.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-28T18:14:16.000Z","updated_at":"2023-12-17T22:10:57.000Z","dependencies_parsed_at":"2024-06-21T19:16:22.531Z","dependency_job_id":"d3a94784-3a62-4408-bc56-7ef7f3c8b811","html_url":"https://github.com/stackus/advent-of-code","commit_stats":null,"previous_names":["stackus/advent-of-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackus/advent-of-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackus%2Fadvent-of-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackus%2Fadvent-of-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackus%2Fadvent-of-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackus%2Fadvent-of-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackus","download_url":"https://codeload.github.com/stackus/advent-of-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackus%2Fadvent-of-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T22:22:16.004Z","updated_at":"2026-01-14T22:22:16.636Z","avatar_url":"https://github.com/stackus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# advent-of-code\nhttps://adventofcode.com/ \n\n## Requirements\n- Go 1.16+ (https://golang.org/doc/install)\n- Taskfile (https://taskfile.dev/#/installation)\n\n## Installation\nBe sure Go has been installed and is available in your PATH.\nVerify by running `go version` in your terminal.\nNext, make sure Taskfile is installed and available in your PATH.\nVerify by running `task --version` in your terminal.\n\n### Setup\nCreate a `.env.local` file in the root of the project and add the following environment variables:\n```\nAOC_SESSION=\u003cyour session cookie from adventofcode.com\u003e\n```\nYou can find this cookie by logging into adventofcode.com and inspecting the request headers for any request made to the site.\nThe cookie will be named `session`.\n\n## Usage\n### Prepping for the current days puzzle\n```bash\ntask\n```\nThis will create a new directory for the current puzzle containing a go file ready for you to fill with your solution.\nIt will also create a `input.txt` file containing the puzzle input.\nThe puzzle description will also be downloaded into `puzzle.md` for reference.\n\nYou can also specify a day and even a year to initialize past puzzles.\n```bash\n# Initialize puzzle for day 1 of the current year\ntask DAY=1\n# Initialize puzzle for day 25 of 2022\ntask DAY=25 YEAR=2022\n```\n\n### Individual commands\nThe default task will run the puzzle `init`, `input`, and `puzzle` commands. You can run these individually as well.\n```bash\n# Get the input for the current day\ntask input\n# Initialize the puzzle for the next day (assuming today is 1)\ntask init DAY=2\n# get the puzzle description for a specific day\ntask puzzle DAY=1 YEAR=2020\n```\n\nUse `task --list` to see all available tasks.\n\n## Solve the puzzle\nEdit the bodies of the `puzzle1`, `puzzle2`, and `parseInput` functions to solve the puzzle.\n\nTo then run your solution for the current puzzle, run the following command:\n```bash\ngo run \u003cYEAR\u003e/day\u003cDAY\u003e -puzzle \u003cPUZZLE_NUMBER\u003e\n```\nThis will create a `solution-\u003cPUZZLE_NUMBER\u003e.txt` file in the directory of the puzzle.\nYou can then submit this file to adventofcode.com to get your stars!\n```bash\n# Submit the solution for puzzle 1 for the current day\ntask submit PUZZLE=1\n# Submit the solution for puzzle 2 for day 25 of 2022\ntask submit PUZZLE=2 DAY=25 YEAR=2022\n```\nThe response from the server will be printed to the console and saved into a file for quick reference.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackus%2Fadvent-of-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackus%2Fadvent-of-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackus%2Fadvent-of-code/lists"}