{"id":18360641,"url":"https://github.com/samasaur1/adventofcode2023","last_synced_at":"2025-04-10T03:37:12.224Z","repository":{"id":210331896,"uuid":"726298502","full_name":"Samasaur1/adventofcode2023","owner":"Samasaur1","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-04T06:31:09.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T18:52:22.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samasaur1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2023-12-02T01:23:46.000Z","updated_at":"2023-12-02T01:23:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"aaa2cc99-b933-4fc8-8992-5c58a79cdab4","html_url":"https://github.com/Samasaur1/adventofcode2023","commit_stats":null,"previous_names":["samasaur1/adventofcode2023"],"tags_count":0,"template":false,"template_full_name":"swiftlang/swift-aoc-starter-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2Fadventofcode2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2Fadventofcode2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2Fadventofcode2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2Fadventofcode2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samasaur1","download_url":"https://codeload.github.com/Samasaur1/adventofcode2023/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248153771,"owners_count":21056487,"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-11-05T22:29:17.622Z","updated_at":"2025-04-10T03:37:12.207Z","avatar_url":"https://github.com/Samasaur1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code Swift Starter Project\n\n[![Language](https://img.shields.io/badge/language-Swift-red.svg)](https://swift.org)\n\nDaily programming puzzles at [Advent of Code](\u003chttps://adventofcode.com/\u003e), by\n[Eric Wastl](\u003chttp://was.tl/\u003e). This is a small example starter project for\nbuilding Advent of Code solutions.\n\n## Usage\n\nSwift comes with Xcode, or you can [install it](https://www.swift.org/install/)\non a supported macOS, Linux, or Windows platform. \n\nIf you're using Xcode, you can open this project by choosing File / Open and\nselect the parent directory. \n\nIf you prefer the command line, you can run the test suite with `swift test`,\nand run the output with `swift run`.\n\nIf you're using Visual Studio Code to edit, you might find these Swift\nextensions useful:\n\n- [Swift](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang)\n  (provides core language edit / debug / test features)\n- [apple-swift-format](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-apple-swift-format)\n  (supports the [swift-format](https://github.com/apple/swift-format) package)\n\n## Challenges\n\nThe challenges assume three files (replace 00 with the day of the challenge).\n\n- `Sources/Data/Day00.txt`: the input data provided for the challenge\n- `Sources/Day00.swift`: the code to solve the challenge\n- `Tests/Day00.swift`: any unit tests that you want to include\n\nTo start a new day's challenge, make a copy of these files and update as\nnecessary. The `AdventOfCode.swift` file controls which day's challenge is run\nwith `swift run`. By default that runs the most recent challenge in the package.\n\nTo supply command line arguments use `swift run AdventOfCode`. For example,\n`swift run -c release AdventOfCode --benchmark 3` builds the binary with full\noptimizations, and benchmarks the challenge for day 3.\n\n## Linting and Formatting\n\nChallenge source code can be linted and formatted automatically using the\nincluded dependency on `swift-format`.\n\nLint source code with the following command:\n\n```shell\n$ swift package lint-source-code\n```\n\nFormat source code with the following command:\n\n```shell\n$ swift package format-source-code\nPlugin ‘Format Source Code’ wants permission to write to the package directory.\nStated reason: “This command formats the Swift source files”.\nAllow this plugin to write to the package directory? (yes/no)\n```\n\nTo avoid the interactive prompt when formatting source code, use the \n`--allow-writing-to-package-directory` flag.\n \n```shell\n$ swift package format-source-code --allow-writing-to-package-directory\n```\n\nswift-format will use the built-in default style to lint and format code. A\n`.swift-format` configuration file can be used to customize the style used, see\n[Configuration](https://github.com/apple/swift-format/blob/main/Documentation/Configuration.md)\nfor more details. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fadventofcode2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamasaur1%2Fadventofcode2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fadventofcode2023/lists"}