{"id":16879885,"url":"https://github.com/wverlaek/adventofcode","last_synced_at":"2026-02-09T03:32:23.400Z","repository":{"id":136321711,"uuid":"435228451","full_name":"WVerlaek/adventofcode","owner":"WVerlaek","description":"Advent of Code solutions written in Kotlin","archived":false,"fork":false,"pushed_at":"2024-12-26T01:08:12.000Z","size":24672,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T12:58:16.312Z","etag":null,"topics":["aoc-2021-in-kotlin","aoc-2022-in-kotlin","aoc-2023-in-kotlin","aoc-2024-in-kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/WVerlaek.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":"2021-12-05T17:07:02.000Z","updated_at":"2024-12-26T01:08:15.000Z","dependencies_parsed_at":"2023-12-12T22:25:56.449Z","dependency_job_id":"9668a2e5-ff33-460c-afef-f7e9103286eb","html_url":"https://github.com/WVerlaek/adventofcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WVerlaek%2Fadventofcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WVerlaek%2Fadventofcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WVerlaek%2Fadventofcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WVerlaek%2Fadventofcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WVerlaek","download_url":"https://codeload.github.com/WVerlaek/adventofcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252938217,"owners_count":21828535,"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":["aoc-2021-in-kotlin","aoc-2022-in-kotlin","aoc-2023-in-kotlin","aoc-2024-in-kotlin"],"created_at":"2024-10-13T15:56:20.044Z","updated_at":"2026-02-09T03:32:22.897Z","avatar_url":"https://github.com/WVerlaek.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code\n\n:star: https://adventofcode.com/\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/wverlaek/adventofcode)\n\nAdvent of Code solutions, written in Kotlin.\n\n\n## Solution framework\n\nA small framework is created to speed up solving a day's puzzle:\n\n* Input is automatically read from the AoC API\n* Unit tests using each day's sample input to verify solutions\n* Answers are automatically uploaded and outcome is shown\n* Common package for utitilities and datastructures\n\nAdditionally, uses IntelliJ [live templates](https://www.jetbrains.com/help/idea/creating-and-editing-live-templates.html):\n  * Template to solve a day's puzzle\n  * Template to unit test a solution with sample input\n\nOr, run the following to generate a source + test file for a new day:\n```console\n./workflow/new.sh \u003cday\u003e [\u003cyear\u003e]\n```\n\nA GitHub Action is configured to run all unit tests on each commit.\n\n## Automatic answer submission\n\nUsing a session token for the Advent of Code API, the day's input is automatically read, and your solution is uploaded on each run with the outcome printed afterwards:\n\n```console\n$ gradle run\nAnswer for 2022/3 level 2: '2581' (took 28ms)\nResponse: right answer!\n```\n\nNo need to manually download inputs and upload your answers :zap:\n\n#### Set up API session token\n\nThe session token needed to read input and upload answers can be set up as follows:\n\n* Log in on https://adventofcode.com/\n* Read the `session` cookie\n* Put its value in this file: `.secrets/session` (.gitignored)\n  * Or set it as env var `AOC_SESSION`, e.g. in the Gitpod user settings to have it automatically used in Gitpod workspaces.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwverlaek%2Fadventofcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwverlaek%2Fadventofcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwverlaek%2Fadventofcode/lists"}