{"id":17886693,"url":"https://github.com/twobiers/adventofcode_2020","last_synced_at":"2025-04-03T02:24:39.599Z","repository":{"id":103457984,"uuid":"317788554","full_name":"twobiers/AdventOfCode_2020","owner":"twobiers","description":"Advent Of Code solutions written in Kotlin https://adventofcode.com/","archived":false,"fork":false,"pushed_at":"2021-02-12T08:06:54.000Z","size":280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T16:35:36.178Z","etag":null,"topics":["advent-of-code","advent-of-code-2020"],"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/twobiers.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":"2020-12-02T07:52:35.000Z","updated_at":"2021-02-12T08:06:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"141d9d1e-7b0e-40de-9109-5ac0558dd094","html_url":"https://github.com/twobiers/AdventOfCode_2020","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/twobiers%2FAdventOfCode_2020","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twobiers%2FAdventOfCode_2020/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twobiers%2FAdventOfCode_2020/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twobiers%2FAdventOfCode_2020/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twobiers","download_url":"https://codeload.github.com/twobiers/AdventOfCode_2020/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246923472,"owners_count":20855584,"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","advent-of-code-2020"],"created_at":"2024-10-28T13:08:53.598Z","updated_at":"2025-04-03T02:24:39.572Z","avatar_url":"https://github.com/twobiers.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎄 Advent Of Code 2020\n\n**This repository contains my [Advent Of Code 2020](https://adventofcode.com/) solutions written in Kotlin**\n\n\u003cp align=\"center\"\u003e\u003cimg height=\"350\" width=\"auto\" src=\"https://i.imgur.com/l1iQzgN.png\" /\u003e\n\u003cbr /\u003e\n\u003csub\u003e\u003csup\u003eSource: \u003ca href=\"https://github.com/apolukhin/christmas-tree\"\u003eapolukhin/christmas-tree\u003c/a\u003e, Boost Software License 1.0\u003c/sup\u003e\u003c/sub\u003e\u003c/p\u003e\n\n## 🚀 Running\n\nRun regular with:\n```\ngradle run\n```\n\nThe application takes a `--days` or `-d` arguments to determine which daily Task should be executed. It takes numbers concated with `,` within (1..25). For example: `--days 1,2,4,5` and with gradle run:\n\n```\ngradle run --args=\"-d 1,2,3,4,5\"\n```\n\n## 🧰 Parameters\n\n```\nOptions:\n    --days, -d [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25] -\u003e Days to execute as List e.g. 1,2,3,4 { String }\n    --repetitions, -r [2] -\u003e Repetitions of solving the exercise. Kind of a benchmark warmup for the JIT Compiler { Int }\n    --help, -h -\u003e Usage info\n```\n\n![https://i.imgur.com/HbEeD3A.png](https://i.imgur.com/HbEeD3A.png)\n\n## 🕑 Benchmarking\n\nAccording to [Avoiding Benchmarking Pitfalls on the JVM](https://www.oracle.com/technical-resources/articles/java/architect-benchmarking.html) the measured elapsed time for the exercises is not meaningful. So a JMH Benchmark is included.\n\nRun detailed benchmarks with (5 Warmups - 10 Iterations):\n```\ngradle benchmark\n```\n\nTo select a specific day for benchmark use the `include` Property which takes a regular expression. For example you can benchmark day 3 by \n```\ngradle benchmark -Pinclude=Day3\ngradle benchmark -Pinclude=aoc.exercises.day3\n```\n\nThe benchmark will be printed to the console and exported as JSON to `build/reports/benchmarks/main`\n\n![https://i.imgur.com/LA5Him8.png](https://i.imgur.com/LA5Him8.png)\n\n# 🧙 Codegen\n\nThe project is able to create its file structure for each days exercise by running\n```\ngradle codegen -Pd=5\n```\nTo get your personal input you need to set your SESSION Cookie as environment variable AOC_SESSION or put it inside a .env file at the root of the project.\nOr you can skip obtaining the inputs by adding the `s` property\n```\ngradle codegen -Pd=5 -Ps\n```\n\nAnd you can download the exercise textual description as readme with\n```\ngradle readme -Pd=5\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwobiers%2Fadventofcode_2020","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwobiers%2Fadventofcode_2020","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwobiers%2Fadventofcode_2020/lists"}