1
0
Fork 0

more 2022 elixir setup

This commit is contained in:
Sloane Perrault 2022-12-10 09:49:01 -05:00
parent 1e3c6f6f78
commit 12ce2934ea
No known key found for this signature in database
9 changed files with 17 additions and 28 deletions

1
2022/elixir/.envrc Normal file
View file

@ -0,0 +1 @@
export ADVENT_OF_CODE_SESSION=53616c7465645f5fb31c51fe066552607f485449bb8029158a5cbcd72954a87a7eafbf99335cb15b788aeec9ab7fd8f50f063217572b636de31d8e721344f02c

View file

@ -0,0 +1 @@
export ADVENT_OF_CODE_SESSION=

View file

@ -24,3 +24,6 @@ aoc_2022-*.tar
# Temporary files, for example, from tests. # Temporary files, for example, from tests.
/tmp/ /tmp/
# input files
/input/

1
2022/elixir/.iex.exs Normal file
View file

@ -0,0 +1 @@
import AOC.IEx

View file

@ -0,0 +1,5 @@
import Config
config :advent_of_code_utils,
auto_compile?: true,
session: System.get_env("ADVENT_OF_CODE_SESSION")

View file

@ -1,18 +0,0 @@
defmodule Aoc2022 do
@moduledoc """
Documentation for `Aoc2022`.
"""
@doc """
Hello world.
## Examples
iex> Aoc2022.hello()
:world
"""
def hello do
:world
end
end

View file

@ -21,8 +21,7 @@ defmodule Aoc2022.MixProject do
# Run "mix help deps" to learn about dependencies. # Run "mix help deps" to learn about dependencies.
defp deps do defp deps do
[ [
# {:dep_from_hexpm, "~> 0.3.0"}, {:advent_of_code_utils, "~> 3.1"}
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
] ]
end end
end end

5
2022/elixir/mix.lock Normal file
View file

@ -0,0 +1,5 @@
%{
"advent_of_code_utils": {:hex, :advent_of_code_utils, "3.1.1", "b1880b694035ab1ea9d722e0e1e3d4444ebc7e7993054083a3eac3c60e425f49", [:mix], [{:floki, "~> 0.34", [hex: :floki, repo: "hexpm", optional: false]}, {:tz, "~> 0.24", [hex: :tz, repo: "hexpm", optional: false]}], "hexpm", "0ab59cf0e397e97dc21e40f2a8d2c4b939ae08ec1dd046284b207d49b3335eb0"},
"floki": {:hex, :floki, "0.34.0", "002d0cc194b48794d74711731db004fafeb328fe676976f160685262d43706a8", [:mix], [], "hexpm", "9c3a9f43f40dde00332a589bd9d389b90c1f518aef500364d00636acc5ebc99c"},
"tz": {:hex, :tz, "0.24.0", "a9073f152c5a9d0abeafde57150cd61d9f11faa7fa3710a20e8487ce05c76cee", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:mint, "~> 1.4", [hex: :mint, repo: "hexpm", optional: true]}], "hexpm", "5c08671bb10a56e09371106b08f5c9192449bb22e94a51de063c8c1317317027"},
}

View file

@ -1,8 +0,0 @@
defmodule Aoc2022Test do
use ExUnit.Case
doctest Aoc2022
test "greets the world" do
assert Aoc2022.hello() == :world
end
end