diff options
author | H.J <thechairman@thechairman.info> | 2024-10-09 11:43:12 -0400 |
---|---|---|
committer | H.J <thechairman@thechairman.info> | 2024-10-09 11:43:12 -0400 |
commit | b1293b0fa652cf1a1dbb18089a35ea4ad92fdf3f (patch) | |
tree | 0e9b1d7a706b303306e0390a0cd51d04b36f9f33 | |
parent | 8777ff071f7bb37631baa7b6717ad29961e50911 (diff) | |
download | gleam_aoc-b1293b0fa652cf1a1dbb18089a35ea4ad92fdf3f.tar.gz gleam_aoc-b1293b0fa652cf1a1dbb18089a35ea4ad92fdf3f.zip |
cleanup
-rw-r--r-- | gleam/aoc2015/.github/workflows/test.yml | 23 | ||||
-rw-r--r-- | gleam/aoc2015/.gitignore | 4 | ||||
-rw-r--r-- | gleam/aoc2015/README.md | 24 | ||||
-rw-r--r-- | gleam/aoc2015/gleam.toml | 21 | ||||
-rw-r--r-- | gleam/aoc2015/manifest.toml | 32 | ||||
-rw-r--r-- | gleam/aoc2015/src/aoc2015.gleam | 5 | ||||
-rw-r--r-- | gleam/aoc2015/test/aoc2015_test.gleam | 12 | ||||
-rw-r--r-- | gleam/aoc2017/.gitignore | 1 | ||||
m--------- | gleam/gladvent | 0 | ||||
-rw-r--r-- | racket/.gitignore (renamed from .gitignore) | 0 |
10 files changed, 122 insertions, 0 deletions
diff --git a/gleam/aoc2015/.github/workflows/test.yml b/gleam/aoc2015/.github/workflows/test.yml new file mode 100644 index 0000000..be97e7a --- /dev/null +++ b/gleam/aoc2015/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: test + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: "26.0.2" + gleam-version: "1.5.1" + rebar3-version: "3" + # elixir-version: "1.15.4" + - run: gleam deps download + - run: gleam test + - run: gleam format --check src test diff --git a/gleam/aoc2015/.gitignore b/gleam/aoc2015/.gitignore new file mode 100644 index 0000000..599be4e --- /dev/null +++ b/gleam/aoc2015/.gitignore @@ -0,0 +1,4 @@ +*.beam +*.ez +/build +erl_crash.dump diff --git a/gleam/aoc2015/README.md b/gleam/aoc2015/README.md new file mode 100644 index 0000000..6031335 --- /dev/null +++ b/gleam/aoc2015/README.md @@ -0,0 +1,24 @@ +# aoc2015 + +[](https://hex.pm/packages/aoc2015) +[](https://hexdocs.pm/aoc2015/) + +```sh +gleam add aoc2015@1 +``` +```gleam +import aoc2015 + +pub fn main() { + // TODO: An example of the project in use +} +``` + +Further documentation can be found at <https://hexdocs.pm/aoc2015>. + +## Development + +```sh +gleam run # Run the project +gleam test # Run the tests +``` diff --git a/gleam/aoc2015/gleam.toml b/gleam/aoc2015/gleam.toml new file mode 100644 index 0000000..66acbc4 --- /dev/null +++ b/gleam/aoc2015/gleam.toml @@ -0,0 +1,21 @@ +name = "aoc2015" +version = "1.0.0" +gleam = ">= 1.1.0" + +# Fill out these fields if you intend to generate HTML documentation or publish +# your project to the Hex package manager. +# +# description = "" +# licences = ["Apache-2.0"] +# repository = { type = "github", user = "", repo = "" } +# links = [{ title = "Website", href = "" }] +# +# For a full reference of all the available options, you can have a look at +# https://gleam.run/writing-gleam/gleam-toml/. + +[dependencies] +gleam_stdlib = ">= 0.34.0 and < 2.0.0" +gladvent = {path = "../gladvent"} + +[dev-dependencies] +gleeunit = ">= 1.0.0 and < 2.0.0" diff --git a/gleam/aoc2015/manifest.toml b/gleam/aoc2015/manifest.toml new file mode 100644 index 0000000..1f4777f --- /dev/null +++ b/gleam/aoc2015/manifest.toml @@ -0,0 +1,32 @@ +# This file was generated by Gleam +# You typically do not need to edit this file + +packages = [ + { name = "argv", version = "1.0.2", build_tools = ["gleam"], requirements = [], otp_app = "argv", source = "hex", outer_checksum = "BA1FF0929525DEBA1CE67256E5ADF77A7CDDFE729E3E3F57A5BDCAA031DED09D" }, + { name = "decode", version = "0.2.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "decode", source = "hex", outer_checksum = "4727FC627B803E4F4FF0075B5F93BC022F9293A19B03BF44B5A4C64BF9E8EAE1" }, + { name = "filepath", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "EFB6FF65C98B2A16378ABC3EE2B14124168C0CE5201553DE652E2644DCFDB594" }, + { name = "gladvent", version = "2.0.0", build_tools = ["gleam"], requirements = ["argv", "decode", "filepath", "gleam_erlang", "gleam_json", "gleam_otp", "gleam_package_interface", "gleam_stdlib", "glint", "parallel_map", "shellout", "simplifile", "snag", "spinner", "tom"], source = "local", path = "../gladvent" }, + { name = "gleam_community_ansi", version = "1.4.1", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "4CD513FC62523053E62ED7BAC2F36136EC17D6A8942728250A9A00A15E340E4B" }, + { name = "gleam_community_colour", version = "1.4.0", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "795964217EBEDB3DA656F5EB8F67D7AD22872EB95182042D3E7AFEF32D3FD2FE" }, + { name = "gleam_erlang", version = "0.27.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "DE468F676D71B313C6C8C5334425CFCF827837333F8AB47B64D8A6D7AA40185D" }, + { name = "gleam_json", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "9063D14D25406326C0255BDA0021541E797D8A7A12573D849462CAFED459F6EB" }, + { name = "gleam_otp", version = "0.12.1", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "BFACC1513410DF5A1617169A9CD7EA334973AC71D860A17574BA7B2EADD89A6F" }, + { name = "gleam_package_interface", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib"], otp_app = "gleam_package_interface", source = "hex", outer_checksum = "CF3BFC5D0997750D9550D8D73A90F4B8D71C6C081B20ED4E70FFBE1E99AFC3C2" }, + { name = "gleam_stdlib", version = "0.40.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "86606B75A600BBD05E539EB59FABC6E307EEEA7B1E5865AFB6D980A93BCB2181" }, + { name = "glearray", version = "0.2.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glearray", source = "hex", outer_checksum = "9C207E05F38D724F464FA921378DB3ABC2B0A2F5821116D8BC8B2CACC68930D5" }, + { name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" }, + { name = "glint", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_community_ansi", "gleam_community_colour", "gleam_stdlib", "snag"], otp_app = "glint", source = "hex", outer_checksum = "369C8A289017F73581D6B9FE2F5748169EB6FA021FFAA34FA7A49EE2094C73B3" }, + { name = "parallel_map", version = "2.1.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_otp", "gleam_stdlib"], otp_app = "parallel_map", source = "hex", outer_checksum = "DE2BA9878728EF9EE34BE83FEDC7A18A1ABE4B2AC1E79C710E3E5D95F5E73404" }, + { name = "repeatedly", version = "2.1.1", build_tools = ["gleam"], requirements = [], otp_app = "repeatedly", source = "hex", outer_checksum = "38808C3EC382B0CD981336D5879C24ECB37FCB9C1D1BD128F7A80B0F74404D79" }, + { name = "shellout", version = "1.6.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "shellout", source = "hex", outer_checksum = "E2FCD18957F0E9F67E1F497FC9FF57393392F8A9BAEAEA4779541DE7A68DD7E0" }, + { name = "simplifile", version = "2.2.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0DFABEF7DC7A9E2FF4BB27B108034E60C81BEBFCB7AB816B9E7E18ED4503ACD8" }, + { name = "snag", version = "0.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "54D32E16E33655346AA3E66CBA7E191DE0A8793D2C05284E3EFB90AD2CE92BCC" }, + { name = "spinner", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_community_ansi", "gleam_erlang", "gleam_stdlib", "glearray", "repeatedly"], otp_app = "spinner", source = "hex", outer_checksum = "200BA3D4A04D468898E63C0D316E23F526E02514BC46454091975CB5BAE41E8F" }, + { name = "thoas", version = "1.2.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "E38697EDFFD6E91BD12CEA41B155115282630075C2A727E7A6B2947F5408B86A" }, + { name = "tom", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "tom", source = "hex", outer_checksum = "228E667239504B57AD05EC3C332C930391592F6C974D0EFECF32FFD0F3629A27" }, +] + +[requirements] +gladvent = { path = "../gladvent" } +gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" } +gleeunit = { version = ">= 1.0.0 and < 2.0.0" } diff --git a/gleam/aoc2015/src/aoc2015.gleam b/gleam/aoc2015/src/aoc2015.gleam new file mode 100644 index 0000000..dae067e --- /dev/null +++ b/gleam/aoc2015/src/aoc2015.gleam @@ -0,0 +1,5 @@ +import gleam/io + +pub fn main() { + io.println("Hello from aoc2015!") +} diff --git a/gleam/aoc2015/test/aoc2015_test.gleam b/gleam/aoc2015/test/aoc2015_test.gleam new file mode 100644 index 0000000..3831e7a --- /dev/null +++ b/gleam/aoc2015/test/aoc2015_test.gleam @@ -0,0 +1,12 @@ +import gleeunit +import gleeunit/should + +pub fn main() { + gleeunit.main() +} + +// gleeunit test functions end in `_test` +pub fn hello_world_test() { + 1 + |> should.equal(1) +} diff --git a/gleam/aoc2017/.gitignore b/gleam/aoc2017/.gitignore index 599be4e..bbeb36f 100644 --- a/gleam/aoc2017/.gitignore +++ b/gleam/aoc2017/.gitignore @@ -2,3 +2,4 @@ *.ez /build erl_crash.dump +/input diff --git a/gleam/gladvent b/gleam/gladvent new file mode 160000 +Subproject 74e4aaae6af5f32264f65b7192448e1cd90b6f4 diff --git a/.gitignore b/racket/.gitignore index d9c6911..d9c6911 100644 --- a/.gitignore +++ b/racket/.gitignore |