{"id":15930267,"url":"https://github.com/ageron/aoc2020-roc","last_synced_at":"2026-01-15T22:10:56.297Z","repository":{"id":250979578,"uuid":"836029808","full_name":"ageron/aoc2020-roc","owner":"ageron","description":"Solutions of Advent-of-Code 2020 in Roc","archived":false,"fork":false,"pushed_at":"2024-08-01T03:50:57.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T03:14:03.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Roc","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ageron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-31T02:53:57.000Z","updated_at":"2024-08-01T03:51:00.000Z","dependencies_parsed_at":"2024-10-29T05:03:42.076Z","dependency_job_id":"a42e73af-7c58-401d-84d0-5f1050bdc2e4","html_url":"https://github.com/ageron/aoc2020-roc","commit_stats":null,"previous_names":["ageron/aoc2020-roc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2020-roc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2020-roc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2020-roc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2020-roc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ageron","download_url":"https://codeload.github.com/ageron/aoc2020-roc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247014520,"owners_count":20869376,"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":[],"created_at":"2024-10-07T00:40:38.916Z","updated_at":"2026-01-15T22:10:56.265Z","avatar_url":"https://github.com/ageron.png","language":"Roc","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code 2020 in Roc\n\nIf you've never heard of Advent of Code, you're missing out. Check it out now at [adventofcode.com](https://adventofcode.com/about)!\n\nI mostly do AoC puzzles for fun, generally coding in Python, but I've also found that it's a great way to get some experience with other programming languages, such as Roc, Haskell, Julia or Rust.\n\nThis repository contains my solutions to the [AoC 2020](https://adventofcode.com/2020) puzzles using Roc. It's still work in progress.\n\nAs I'm still learning Roc, the code may not always be as simple or idiomatic as it could be. If you have suggestions for things I could improve, please don't hesitate to file an issue or submit a PR. Thanks!\n\n## Usage\n\nMake sure you have Roc and Git installed, then open a terminal and run:\n\n```shell\ngit clone https://github.com/ageron/aoc2020-roc\ncd aoc2020-roc\nroc main.roc\n```\n\nYou can specify days to run if you want, for example this will run days 2, 4, and 6:\n\n```\nroc main.roc 2 4 6\n```\n\n## Getting the data\n\nI've also included a little `get_data.py` utility to automatically download the data of the day, at the right time (you'll get a countdown if you're early). I was too lazy to code it in Roc, but perhaps I'll port it one day. To use it, just type the following command in a terminal, replacing `{day}` with the day you want:\n\n```\ncd /path/to/this/repository\npython get_data.py 2020 {day}\n```\n\nThe script requires the `requests` and `pytz` libraries, which you can install like this:\n\n```\npython -m pip install --user requests pytz\n```\n\nThe first time you run `get_data.py`, you will be asked to login to AoC in your browser, [find your session cookie](https://github.com/wimglenn/advent-of-code-wim/issues/1), and save it into a `.session` file in the current directory.\n\nHave fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Faoc2020-roc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fageron%2Faoc2020-roc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Faoc2020-roc/lists"}