{"id":22917281,"url":"https://github.com/pagyew/aoc-template","last_synced_at":"2025-10-12T13:17:18.003Z","repository":{"id":265961908,"uuid":"896841302","full_name":"pagyew/AoC-template","owner":"pagyew","description":"💻 📃 Template to generate environment for solving Advent of Code","archived":false,"fork":false,"pushed_at":"2024-12-16T18:54:22.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T07:42:24.465Z","etag":null,"topics":["advent-of-code","aoc","template"],"latest_commit_sha":null,"homepage":"https://adventofcode.com","language":"JavaScript","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/pagyew.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":"2024-12-01T12:43:36.000Z","updated_at":"2025-01-07T16:42:31.000Z","dependencies_parsed_at":"2024-12-01T20:34:07.101Z","dependency_job_id":null,"html_url":"https://github.com/pagyew/AoC-template","commit_stats":null,"previous_names":["pagyew/aoc-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagyew%2FAoC-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagyew%2FAoC-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagyew%2FAoC-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagyew%2FAoC-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pagyew","download_url":"https://codeload.github.com/pagyew/AoC-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246642327,"owners_count":20810578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["advent-of-code","aoc","template"],"created_at":"2024-12-14T06:17:25.418Z","updated_at":"2025-10-12T13:17:12.944Z","avatar_url":"https://github.com/pagyew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AoC-template\nUse this template to generate environment for solving [Advent of Code](https://adventofcode.com/) puzzles\n\n## How to use\n\n### Setup\n1. Create `.env` file in the root of the project to store your session cookie and year\n2. Add `AOC_SESSION=YOUR_SESSION` to your `.env` file\n3. Add `AOC_YEAR=YEAR_YOU_WANT_TO_SOLVE` to your `.env` file\n\n### Running\nYou can run the script using the command `node go [next|last]`\n  - `next` will create a new directory for the next day and open the file\n  - `last` will open the last day's file\n  - Write your solve function in `solve.js` (it's open automatically when you run the script) and return answer\n\n### Utils\n- `heap` – Used for priority queue.\n```\nconst Heap = require('../../utils/heap');\n\nconst heap = new Heap(compareFunction, initialArray);\n```\n- `nerdamer` – Used for solving equations.\n```\nconst nerdamer = require('../../utils/nerdamer');\n```\n[link to original repository](https://github.com/jiggzson/nerdamer)\n\n### Debugging\n- In `[day].txt` you can find the input for the problem\n- Dirname and input filename for the day less than 10 should be prefixed with `0` for right alignment\n- To debug and view results when solving the problem, you can use `nodemon days/[day]`\n- You can also use `node days/[day]` to run the code without the need to restart the server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagyew%2Faoc-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpagyew%2Faoc-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagyew%2Faoc-template/lists"}