Skip to content

Commit b95bea1

Browse files
committed
Day 12 complete
Man, I did not see that trick of x y and z independently until I read reddit. Hey ho.
1 parent 2cb08ab commit b95bea1

22 files changed

+404332
-1
lines changed

2019/11/run.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# IO.puts "part1 : #{ AOC.Runner.part_1 }"
1+
IO.puts "part1 : #{ AOC.Runner.part_1 }"
22
IO.puts "\n\n#{ AOC.Runner.part_2 }\n\n"
33

2019/12/.formatter.exs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Used by "mix format"
2+
[
3+
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
4+
]

2019/12/.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# The directory Mix will write compiled artifacts to.
2+
/_build/
3+
4+
# If you run "mix test --cover", coverage assets end up here.
5+
/cover/
6+
7+
# The directory Mix downloads your dependencies sources to.
8+
/deps/
9+
10+
# Where third-party dependencies like ExDoc output generated docs.
11+
/doc/
12+
13+
# Ignore .fetch files in case you like to edit your project deps locally.
14+
/.fetch
15+
16+
# If the VM crashes, it generates a dump, let's ignore it too.
17+
erl_crash.dump
18+
19+
# Also ignore archive artifacts (built via "mix archive.build").
20+
*.ez
21+
22+
# Ignore package tarball (built via "mix hex.build").
23+
aoc-*.tar
24+

2019/12/.projections.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"lib/*.ex": {
3+
"type": "src",
4+
"alternate": "test/{}_test.exs",
5+
"template": [
6+
"# lib/{}.ex",
7+
"defmodule XXX do",
8+
"end"
9+
]
10+
},
11+
"test/*_test.exs": {
12+
"type": "test",
13+
"alternate": "lib/{}.ex",
14+
"template": [
15+
"# test/{}_test.exs",
16+
"defmodule XXX do",
17+
"end"
18+
]
19+
},
20+
}

2019/12/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# AOC
2+
3+
**TODO: Add description**
4+
5+
## Installation
6+
7+
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
8+
by adding `aoc` to your list of dependencies in `mix.exs`:
9+
10+
```elixir
11+
def deps do
12+
[
13+
{:aoc, "~> 0.1.0"}
14+
]
15+
end
16+
```
17+
18+
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
19+
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
20+
be found at [https://hexdocs.pm/aoc](https://hexdocs.pm/aoc).
21+

2019/12/config/config.exs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file is responsible for configuring your application
2+
# and its dependencies with the aid of the Mix.Config module.
3+
use Mix.Config
4+
5+
# This configuration is loaded before any dependency and is restricted
6+
# to this project. If another project depends on this project, this
7+
# file won't be loaded nor affect the parent project. For this reason,
8+
# if you want to provide default values for your application for
9+
# third-party users, it should be done in your "mix.exs" file.
10+
11+
# You can configure your application as:
12+
#
13+
# config :aoc, key: :value
14+
#
15+
# and access this configuration in your application as:
16+
#
17+
# Application.get_env(:aoc, :key)
18+
#
19+
# You can also configure a third-party app:
20+
#
21+
# config :logger, level: :info
22+
#
23+
24+
# It is also possible to import configuration files, relative to this
25+
# directory. For example, you can emulate configuration per environment
26+
# by uncommenting the line below and defining dev.exs, test.exs and such.
27+
# Configuration from the imported file will override the ones defined
28+
# here (which is why it is important to import them last).
29+
#
30+
# import_config "#{Mix.env()}.exs"

2019/12/foo.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2027 5897 4701

2019/12/input.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<x=-13, y=14, z=-7>
2+
<x=-18, y=9, z=0>
3+
<x=0, y=-3, z=-3>
4+
<x=-15, y=3, z=-13>

0 commit comments

Comments
 (0)