{"id":24793972,"url":"https://github.com/asjordi/adventjs","last_synced_at":"2025-03-24T17:47:21.808Z","repository":{"id":142229364,"uuid":"575164476","full_name":"ASJordi/adventjs","owner":"ASJordi","description":"Personal solutions for AdventJs","archived":false,"fork":false,"pushed_at":"2024-12-25T14:06:01.000Z","size":396,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T22:34:01.944Z","etag":null,"topics":["adventjs","adventjs2022","adventjs2023","adventjs2024","javascipt","solutions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ASJordi.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":"2022-12-06T22:35:57.000Z","updated_at":"2024-12-25T14:02:48.000Z","dependencies_parsed_at":"2024-11-28T23:20:09.787Z","dependency_job_id":"9419beaa-0fff-45fd-8fa0-6537902a06c1","html_url":"https://github.com/ASJordi/adventjs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Fadventjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Fadventjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Fadventjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Fadventjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ASJordi","download_url":"https://codeload.github.com/ASJordi/adventjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245321130,"owners_count":20596304,"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":["adventjs","adventjs2022","adventjs2023","adventjs2024","javascipt","solutions"],"created_at":"2025-01-29T22:30:23.862Z","updated_at":"2025-03-24T17:47:21.785Z","avatar_url":"https://github.com/ASJordi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![Tests][tests-shield]][tests-url]\n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003eAdventJS 2024\u003c/h3\u003e\n  Personal solutions to the challenges of \u003ca href=\"https://adventjs.dev/\"\u003eAdventjs 2024\u003c/a\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/ASJordi/adventjs/blob/main/README.md\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Content\n\n\u003cdetails\u003e\n  \u003csummary\u003eShow / Hide\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\u003ca href=\"#challenges\"\u003eChallenges\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#run-project\"\u003eRun project\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#run-tests\"\u003eRun tests\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## Challenges\n\n### :snowman: 2024\n\n\u003cdetails open\u003e\n  \u003csummary\u003eShow / Hide\u003c/summary\u003e\n\n| #  |                      Name                       | Difficulty |             Solution              | Score |\n|:--:|:-----------------------------------------------:|:----------:|:---------------------------------:|:-----:|\n| 01 |           🎁 ¡Primer regalo repetido!           |     🟢     |     [Show](src/2024/day-one/)     | ⭐⭐⭐⭐⭐ |\n| 02 |             🖼️ Enmarcando nombres              |     🟢     |     [Show](src/2024/day-two/)     | ⭐⭐⭐⭐⭐ |\n| 03 |          🏗️ Organizando el inventario          |     🟢     |    [Show](src/2024/day-three)     | ⭐⭐⭐⭐⭐ |\n| 04 |        🎄 Decorando el árbol de Navidad         |     🟠     |     [Show](src/2024/day-four)     | ⭐⭐⭐⭐⭐ |\n| 05 |              👞 Emparejando botas               |     🟢     |     [Show](src/2024/day-five)     | ⭐⭐⭐⭐⭐ |\n| 06 |          📦 ¿Regalo dentro de la caja?          |     🟠     |     [Show](src/2024/day-six)      | ⭐⭐⭐⭐⭐ |\n| 07 |             👹 El ataque del Grinch             |     🟠     |    [Show](src/2024/day-seven)     | ⭐⭐⭐⭐⭐ |\n| 08 |             🦌 La carrera de renos              |     🟢     |    [Show](src/2024/day-eight)     | ⭐⭐⭐⭐⭐ |\n| 09 |                🚂 El tren mágico                |     🟠     |     [Show](src/2024/day-nine)     | ⭐⭐⭐⭐⭐ |\n| 10 |           👩‍💻 El ensamblador élfico           |     🟠     |     [Show](src/2024/day-ten)      | ⭐⭐⭐⭐⭐ |\n| 11 |      🏴‍☠️ Nombres de archivos codificados      |     🟢     |    [Show](src/2024/day-eleven)    | ⭐⭐⭐⭐⭐ |\n| 12 |           💵 ¿Cuánto cuesta el árbol?           |     🟢     |    [Show](src/2024/day-twelve)    | ⭐⭐⭐⭐⭐ |\n| 13 |          🤖 ¿El robot está de vuelta?           |     🔴     |   [Show](src/2024/day-thirteen)   | ⭐⭐⭐⭐⭐ |\n| 14 |             🦌 Acomodando los renos             |     🟢     |   [Show](src/2024/day-fourteen)   | ⭐⭐⭐⭐⭐ |\n| 15 |               ✏️ Dibujando tablas               |     🟢     |   [Show](src/2024/day-fifteen)    | ⭐⭐⭐⭐⭐ |\n| 16 |        ❄️ Limpiando la nieve del camino         |     🟢     |   [Show](src/2024/day-sixteen)    | ⭐⭐⭐⭐⭐ |\n| 17 |         💣 Busca las bombas del Grinch          |     🟠     |  [Show](src/2024/day-seventeen)   | ⭐⭐⭐⭐⭐ |\n| 18 |          📇 La agenda mágica de Santa           |     🔴     |   [Show](src/2024/day-eighteen)   | ⭐⭐⭐⭐⭐ |\n| 19 |  📦 Apila cajas mágicas para repartir regalos   |     🔴     |   [Show](src/2024/day-nineteen)   | ⭐⭐⭐⭐⭐ |\n| 20 | 🎁 Encuentra los regalos faltantes y duplicados |     🟢     |    [Show](src/2024/day-twenty)    | ⭐⭐⭐⭐⭐ |\n| 21 |    🎄 Calcula la altura del árbol de Navidad    |     🟢     |  [Show](src/2024/day-twenty-one)  | ⭐⭐⭐⭐⭐ |\n| 22 |       🎁 Genera combinaciones de regalos        |     🟠     |  [Show](src/2024/day-twenty-two)  | ⭐⭐⭐⭐⭐ |\n| 23 |        🔢 Encuentra los números perdidos        |     🟢     | [Show](src/2024/day-twenty-three) | ⭐⭐⭐⭐⭐ |\n| 24 | 🪞 Verifica si los árboles son espejos mágicos  |     🟠     | [Show](src/2024/day-twenty-four)  | ⭐⭐⭐⭐⭐ |\n| 25 |          🪄 Ejecuta el lenguaje mágico          |     🟠     | [Show](src/2024/day-twenty-five)  | ⭐⭐⭐⭐⭐ |\n| 26 |      🎯 Calculate the completed percentage      |     🟢     |  [Show](src/2024/day-twenty-six)  | ⭐⭐⭐⭐⭐ |\n\n**Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard\n\n\u003c/details\u003e\n\n### :christmas_tree: 2023\n\n\u003cdetails\u003e\n  \u003csummary\u003eShow / Hide\u003c/summary\u003e\n\n| #  |                        Name                         | Difficulty[^1] |             Solution              |\n|:--:|:---------------------------------------------------:|:--------------:|:---------------------------------:|\n| 01 |              ¡Primer regalo repetido!               |       🟢       |     [Show](src/2023/day-one/)     |\n| 02 |           🏭 Ponemos en marcha la fábrica           |       🟢       |     [Show](src/2023/day-two/)     |\n| 03 |                 😏 El elfo travieso                 |       🟢       |    [Show](src/2023/day-three)     |\n| 04 |        😵‍💫 Dale la vuelta a los paréntesis        |       🟠       |     [Show](src/2023/day-four)     |\n| 05 |              🛷 El CyberTruck de Santa              |       🟠       |     [Show](src/2023/day-five)     |\n| 06 |                🦌 Los renos a prueba                |       🟢       |     [Show](src/2023/day-six)      |\n| 07 |                 📦 Las cajas en 3D                  |       🟢       |    [Show](src/2023/day-seven)     |\n| 08 |                 📦 Las cajas en 3D                  |       🟢       |    [Show](src/2023/day-seven)     |\n| 09 |                🚦 Alterna las luces                 |       🟢       |     [Show](src/2023/day-nine)     |\n| 10 |         🎄 Crea tu propio árbol de navidad          |       🟢       |     [Show](src/2023/day-ten)      |\n| 11 |               📖 Los elfos estudiosos               |       🟠       |    [Show](src/2023/day-eleven)    |\n| 12 |              📸 ¿Es una copia válida?               |       🟠       |    [Show](src/2023/day-twelve)    |\n| 13 |               ⌚️ Calculando el tiempo               |       🟢       |   [Show](src/2023/day-thirteen)   |\n| 14 |                 🚨 Evita la alarma                  |       🟠       |   [Show](src/2023/day-fourteen)   |\n| 15 |                  ↔️ Robot autónomo                  |       🟠       |   [Show](src/2023/day-fifteen)    |\n| 16 |               ❌ Despliegue en viernes               |       🟢       |   [Show](src/2023/day-sixteen)    |\n| 17 |             🛷 Optimizando el alquiler              |       🟢       |  [Show](src/2023/day-seventeen)   |\n| 18 |                 🔢 El reloj digital                 |       🔴       |   [Show](src/2023/day-eighteen)   |\n| 19 |               💣 Enfrenta el sabotaje               |       🟠       |   [Show](src/2023/day-nineteen)   |\n| 20 |              🏋️‍♂️ Distribuye el peso              |     🔴         |    [Show](src/2023/day-twenty)    |\n| 21 |                 🪐 Mensaje binario                  |     🟠         |  [Show](src/2023/day-twenty-one)  |\n| 22 |             🚂 Lenguaje de programación             |     🟢         |  [Show](src/2023/day-twenty-two)  |\n| 23 |              🍽️ La comida de Navidad               |     🟢         | [Show](src/2023/day-twenty-three) |\n| 24 |              🪜 Brincos en la escalera              |     🟠         | [Show](src/2023/day-twenty-four)  |\n| 25 |              🗺️ Calculando distancias              |     🟠         | [Show](src/2023/day-twenty-five)  |\n\n[^1]: **Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard\n\n\u003c/details\u003e\n\n### :santa: 2022\n\n\u003cdetails\u003e\n\u003csummary\u003eShow / Hide\u003c/summary\u003e\n\n|  #  |                  Name                             | Difficulty[^1] |                                       Solution                                  |\n| :-: | :-----------------------------------------------: | :------------: |  :--------------------------------------------------------------------------: |\n| 01  |    Automating Christmas gift wrapping!            |       🟢       | [Solution](src/day-one) |\n| 02  |  Nobody wants to do extra hours at work           |       🟢       | [Solution](src/day-two) |\n| 03  |     How many packs of gifts can Santa carry?      |       🟢       | [Solution](src/day-three) |\n| 04  |      Box inside a box and another...              |       🟠       | [Solution](src/day-four) |\n| 05  |            Optimizing Santa's trips               |       🔴       | [Solution](src/day-five) |\n| 06  |             Creating xmas decorations             |       🟠       | [Solution](src/day-six) |\n| 07  |             Doing gifts inventory                 |       🟢       | [Solution](src/day-seven) |\n| 08  |             We need a mechanic!                   |       🟠       | [Solution](src/day-eight) |\n| 09  |             Crazy Xmas lights                     |       🟢       | [Solution](src/day-nine) |\n| 10  |    The Santa Claus sleigh jump                    |       🟠       | [Solution](src/day-ten) |\n| 11  |          Santa Claus is Scrum Master              |       🔴       | [Solution](src/day-eleven) |\n| 12  |          Electric sleighs, wow!                   |       🟠       | [Solution](src/day-twelve) |\n| 13  |          Backups for Santa Claus files            |       🟢       | [Solution](src/day-thirteen) |\n| 14  |              The best path                        |       🟠       | [Solution](src/day-fourteen) |\n| 15  |              Decorating the Christmas tree        |       🟠       | [Solution](src/day-fifteen) |\n| 16  |              Fixing Santa Claus' letters          |       🔴       | [Solution](src/day-sixteen) |\n| 17  |               Carrying gifts in bags              |       🟠       | [Solution](src/day-seventeen) |\n| 18  |               We ran out of ink!                  |       🟢       | [Solution](src/day-eighteen) |\n| 19  |               Sorting the toys!                   |       🟢       | [Solution](src/day-nineteen) |\n| 20  |               More challenging trips              |       🔴       | [Solution](src/day-twenty) |\n| 21  |               Creating the gifts table            |       🟠       | [Solution](src/day-twenty-one) |\n| 22  |               The lights in sync                  |       🟢       | [Solution](src/day-twenty-two) |\n| 23  |               Santa Claus Compiler                |       🔴       | [Solution](src/day-twenty-three) |\n| 24  |          The last challenge is a maze             |       🔴       | [Solution](src/day-twenty-four) |\n\n[^1]: **Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard\n\n\u003c/details\u003e\n\n## Getting Started\n\nTo get a local copy up and running follow these simple example steps.\n\n### Installation\n\nOnly is it necessary to clone the repository and install the dependencies.\n\n1. Clone the repository\n   ```sh\n   git clone https://github.com/ASJordi/adventjs.git\n   ```\n2. Install NPM packages\n   ```sh\n   npm install\n   ```\n\n### Run project\n\nYou can run the project with the following command, it will run the file `index.js`:\n\n```sh\nnpm run dev\n```\n\nIf you want to run a specific file, you can change the `index.js` file name with the file you want to run in the package.json file.\n\n### Run tests\n\nYou can run all tests with the following command:\n\n```sh\nnpm run test\n```\n\nYou can run all tests from a specific year with the following command:\n\n```sh\nnpm run test:yyyy\n\n# Example\nnpm run test:2024\n```\n\nYou can run a specific test with the following command:\n\n```sh\nnpm run test:n\n\n# Example\nnpm run test:1\n```\n\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n## Contact\n\nJordi Ayala - [@ASJordi](https://twitter.com/ASJordi)\n\nProject link: [https://github.com/ASJordi/adventjs](https://github.com/ASJordi/adventjs)\n\n[contributors-shield]: https://img.shields.io/github/contributors/ASJordi/adventjs.svg?style=for-the-badge\n[contributors-url]: https://github.com/ASJordi/adventjs/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/ASJordi/adventjs.svg?style=for-the-badge\n[forks-url]: https://github.com/ASJordi/adventjs/network/members\n[stars-shield]: https://img.shields.io/github/stars/ASJordi/adventjs.svg?style=for-the-badge\n[stars-url]: https://github.com/ASJordi/adventjs/stargazers\n[issues-shield]: https://img.shields.io/github/issues/ASJordi/adventjs.svg?style=for-the-badge\n[issues-url]: https://github.com/ASJordi/adventjs/issues\n[license-shield]: https://img.shields.io/github/license/ASJordi/adventjs.svg?style=for-the-badge\n[license-url]: https://github.com/ASJordi/adventjs/blob/master/LICENSE\n[tests-shield]: https://img.shields.io/github/actions/workflow/status/asjordi/adventjs/tests.yml?branch=mglain\u0026label=Tests\u0026style=for-the-badge\n[tests-url]: https://github.com/ASJordi/adventjs/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasjordi%2Fadventjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasjordi%2Fadventjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasjordi%2Fadventjs/lists"}