Compare commits

..

127 commits

Author SHA1 Message Date
30c1608c7c 2020: d25: ex2: add solution 2020-12-25 11:41:44 +01:00
ca8fabb66d 2020: d25: ex2: add input 2020-12-25 11:40:36 +01:00
c2ba064f5b 2020: d25: ex1: add solution 2020-12-25 11:39:46 +01:00
92c361811f 2020: d25: ex1: add input 2020-12-25 11:39:33 +01:00
db5462c749 2020: d24: ex2: add solution 2020-12-24 13:36:58 +01:00
d594b55253 2020: d24: ex2: add input 2020-12-24 13:36:58 +01:00
3fe1e0df1e 2020: d24: ex1: add solution 2020-12-24 13:36:58 +01:00
2b69691218 2020: d24: ex1: add input 2020-12-24 13:26:28 +01:00
013edcedbf 2020: d23: ex2: add solution 2020-12-23 13:14:20 +01:00
cf7162f0ed 2020: d23: ex2: add input 2020-12-23 13:14:20 +01:00
71a071541d 2020: d23: ex1: add solution 2020-12-23 13:14:20 +01:00
6d16c8c54f 2020: d23: ex1: add input 2020-12-23 13:10:59 +01:00
122a1f733f 2020: d22: ex2: add solution 2020-12-22 14:05:10 +01:00
740d4587c3 2020: d22: ex2: add input 2020-12-22 13:59:09 +01:00
e5e57472d9 2020: d22: ex1: add solution 2020-12-22 13:59:01 +01:00
9bba99e0b5 2020: d22: ex1: add input 2020-12-22 13:58:53 +01:00
14dc5486dd 2020: d21: ex2: add solution 2020-12-21 12:04:32 +01:00
38de4e0901 2020: d21: ex2: add input 2020-12-21 12:04:25 +01:00
1661a5b099 2020: d21: ex1: add solution 2020-12-21 12:04:18 +01:00
eed15e3b5a 2020: d21: ex1: add input 2020-12-21 12:04:10 +01:00
66e0d00388 2020: d20: ex2: add solution 2020-12-20 14:27:02 +01:00
e74b14dd0a 2020: d20: ex2: add input 2020-12-20 14:26:57 +01:00
90a232e43d 2020: d20: ex1: add solution 2020-12-20 14:26:48 +01:00
69001f774c 2020: d20: ex1: add input 2020-12-20 14:26:25 +01:00
e4d3782063 2020: d19: ex2: add solution 2020-12-19 11:01:11 +01:00
9fcbfff124 2020: d19: ex2: add input 2020-12-19 11:01:05 +01:00
c1d6130dcb 2020: d19: ex1: add solution 2020-12-19 11:00:31 +01:00
8383ae7d78 2020: d19: ex1: add input 2020-12-19 11:00:25 +01:00
4a629457bc 2020: d18: ex2: add solution 2020-12-18 10:10:08 +01:00
7af53115ee 2020: d18: ex2: add input 2020-12-18 10:10:02 +01:00
da7f0d0ad5 2020: d18: ex1: add solution 2020-12-18 10:09:52 +01:00
01d73d61a1 2020: d18: ex1: add input 2020-12-18 10:09:45 +01:00
6eb6bc6137 2020: d17: ex2: add solution 2020-12-17 08:55:51 +01:00
a344b895a3 2020: d17: ex2: add input 2020-12-17 08:55:44 +01:00
6dd718ef59 2020: d17: ex1: add solution 2020-12-17 08:55:37 +01:00
1f959aa92c 2020: d17: ex1: add input 2020-12-17 08:55:29 +01:00
619538daca 2020: d16: ex2: add solution 2020-12-16 10:19:27 +01:00
45057861df 2020: d16: ex2: add input 2020-12-16 10:10:59 +01:00
273724988f 2020: d16: ex1: add solution 2020-12-16 10:10:50 +01:00
3c36e1aef8 2020: d16: ex1: add input 2020-12-16 10:10:42 +01:00
b6cbb880a0 2020: d15: ex2: add solution 2020-12-15 11:16:26 +01:00
71cf2c6d7c 2020: d15: ex2: add input 2020-12-15 11:16:20 +01:00
72856d6606 2020: d15: ex1: add solution 2020-12-15 11:16:05 +01:00
293037d5a4 2020: d15: ex1: add input 2020-12-15 11:15:59 +01:00
f3492d05d0 2020: d15: ex2: add solution 2020-12-14 09:53:44 +01:00
ed18c400d7 2020: d15: ex2: add input 2020-12-14 09:53:39 +01:00
ad2881f76a 2020: d14: ex1: add solution 2020-12-14 09:53:24 +01:00
69af7f1267 2020: d14: ex1: add input 2020-12-14 09:53:17 +01:00
8b1f1263d4 2020: d13: ex2: add solution 2020-12-13 07:39:21 +01:00
8587b92b13 2020: d13: ex2: add input 2020-12-13 07:38:58 +01:00
769d2f7079 2020: d13: ex1: add solution 2020-12-13 07:38:51 +01:00
35bb7637a5 2020: d13: ex1: add input 2020-12-13 07:38:28 +01:00
45665008ab 2020: d12: ex2: add solution 2020-12-12 10:06:19 +01:00
19d6cebab9 2020: d12: ex2: add input 2020-12-12 10:06:13 +01:00
3b92a5508e 2020: d12: ex1: add solution 2020-12-12 10:06:00 +01:00
ee4c50a6bb 2020: d12: ex1: add input 2020-12-12 10:05:53 +01:00
60a0b29bd8 2020: d11: ex2: add solution 2020-12-11 08:41:47 +01:00
27df15659d 2020: d11: ex2: add input 2020-12-11 08:41:38 +01:00
178025720f 2020: d11: ex1: add solution 2020-12-11 08:41:30 +01:00
b5440f9cc2 2020: d11: ex1: add input 2020-12-11 08:41:03 +01:00
e4757b553c 2020: d10: ex2: add solution 2020-12-10 07:29:28 +01:00
6df139a403 2020: d10: ex2: add input 2020-12-10 07:29:21 +01:00
fcba303e73 2020: d10: ex1: add solution 2020-12-10 07:29:12 +01:00
c97dfe41e5 2020: d10: ex1: add input 2020-12-10 07:29:04 +01:00
af7bad3bb4 2020: d09: ex2: add solution 2020-12-09 09:11:33 +01:00
07e3652062 2020: d09: ex2: add input 2020-12-09 09:11:16 +01:00
abe1e2cdfc 2020: d09: ex1: add solution 2020-12-09 09:10:46 +01:00
39ac79cdfb 2020: d09: ex1: add input 2020-12-09 09:10:32 +01:00
a4f30ea529 2020: d08: ex2: add solution 2020-12-08 08:24:09 +01:00
1c2fd677b8 2020: d08: ex2: add input 2020-12-08 08:23:46 +01:00
cabdec350e 2020: d08: ex1: add solution 2020-12-08 08:23:38 +01:00
194d509229 2020: d08: ex1: add input 2020-12-08 08:23:25 +01:00
2ad45ddffb 2020: d07: ex2: add solution 2020-12-07 15:14:39 +01:00
89fc6372ee 2020: d07: ex2: add input 2020-12-07 15:14:39 +01:00
ccf68865d7 2020: d07: ex1: add solution 2020-12-07 15:14:39 +01:00
e583818e1e 2020: d07: ex1: add input 2020-12-07 07:08:52 +01:00
c9827900de 2020: d06: ex2: add solution 2020-12-06 07:23:29 +01:00
f4717a92ed 2020: d06: ex2: add input 2020-12-06 07:23:22 +01:00
29f0c9857e 2020: d06: ex1: add solution 2020-12-06 07:22:41 +01:00
c963ff6d16 2020: d06: ex1: add input 2020-12-06 07:22:31 +01:00
e5931ff7e0 2020: d05: ex2: add solution 2020-12-05 09:29:59 +01:00
99c305dfa2 2020: d05: ex2: add input 2020-12-05 09:29:06 +01:00
afc0c5331d 2020: d05: ex1: add solution 2020-12-05 09:28:52 +01:00
820924a020 2020: d05: ex1: add input 2020-12-05 09:28:45 +01:00
83f70e392a 2020: d04: ex2: add solution 2020-12-04 09:50:41 +01:00
f9e57dfb87 2020: d04: ex2: add input 2020-12-04 09:50:31 +01:00
a0e6c681fe 2020: d04: ex1: add solution 2020-12-04 09:50:23 +01:00
e5c62197f9 2020: d04: ex1: add input 2020-12-04 09:50:17 +01:00
14f304ec37 2020: d03: ex2: add solution 2020-12-03 18:22:09 +01:00
b51985a84d 2020: d03: ex2: add input 2020-12-03 18:22:04 +01:00
8cea1480c0 2020: d03: ex1: add solution 2020-12-03 18:21:57 +01:00
dac16e8af8 2020: d03: ex1: add input 2020-12-03 18:21:51 +01:00
d42ad03ead 2019: d19: ex2: add solution 2020-12-02 18:17:02 +01:00
458a3bc56e 2019: d19: ex2: add input 2020-12-02 18:16:59 +01:00
2bdf788726 2019: d19: ex1: add solution 2020-12-02 18:16:26 +01:00
6b47d708db 2019: d19: ex1: add input 2020-12-02 18:16:20 +01:00
9e86b3276c 2019: d18: ex2: add solution 2020-12-02 16:43:49 +01:00
026fff247c 2019: d18: ex2: add input 2020-12-02 16:43:38 +01:00
6f693ad5ef 2019: d18: ex1: add solution 2020-12-02 15:55:40 +01:00
5e47bc1d12 2019: d18: ex1: add input 2020-12-02 15:49:22 +01:00
6183e79154 2020: d02: ex2: add solution 2020-12-02 11:31:23 +01:00
e7bd5a428c 2020: d02: ex2: add input 2020-12-02 11:20:25 +01:00
63550c25a9 2020: d02: ex1: add solution 2020-12-02 11:20:12 +01:00
cad1322c62 2020: d02: ex1: add input 2020-12-02 11:20:04 +01:00
ed90ecf307 2020: d01: ex2: add solution 2020-12-01 16:40:04 +01:00
dc913b4153 2020: d01: ex2: add input 2020-12-01 16:40:04 +01:00
ec41d05389 2020: d01: ex1: add solution 2020-12-01 16:40:04 +01:00
bf6e173b68 2020: d01: ex1: add input 2020-12-01 16:36:34 +01:00
711c8ccdbc 2019: d17: ex2: add solution 2020-11-09 11:52:18 +01:00
ece8d85434 2019: d17: ex2: add input 2020-11-09 11:52:18 +01:00
e1b83bfab4 2019: d17: ex1: add solution 2020-11-09 11:52:18 +01:00
fed36075c2 2019: d17: ex1: add input 2020-11-09 11:52:18 +01:00
2a04581c74 2019: d16: ex2: add solution 2020-11-09 11:52:18 +01:00
5f1925d5ca 2019: d16: ex2: add input 2020-11-09 11:52:18 +01:00
7176be234e 2019: d16: ex1: add solution 2020-11-09 11:52:18 +01:00
fd178de3f8 2019: d16: ex1: add input 2020-11-09 11:52:18 +01:00
02e1deff26 2019: d15: ex2: add solution 2020-11-09 11:52:18 +01:00
4fa6e13643 2019: d15: ex2: add input 2020-11-09 11:52:18 +01:00
1b4c335a02 2019: d15: ex1: add solution 2020-11-09 11:52:18 +01:00
dd872a9fcf 2019: d15: ex1: add input 2020-11-09 11:52:18 +01:00
6a7f323199 2019: d14: ex2: add solution 2020-11-09 11:52:18 +01:00
438f9d02c7 2019: d14: ex2: add input 2020-11-09 11:52:18 +01:00
ac2596c9bb 2019: d14: ex1: add solution 2020-11-09 11:52:18 +01:00
f057446524 2019: d14: ex1: add input 2020-11-09 11:52:18 +01:00
a6d8879f60 2019: d13: ex2: add solution 2020-11-09 11:52:18 +01:00
08fb468c9d 2019: d13: ex2: add input 2020-11-09 11:52:18 +01:00
9d887bfca2 2019: d13: ex1: add solution 2020-11-09 11:52:18 +01:00
5 changed files with 2 additions and 143 deletions

7
.envrc
View file

@ -1,7 +0,0 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env)"
}
use flake

View file

@ -3,7 +3,7 @@
import sys
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Dict, Iterable, List, NamedTuple, Tuple, TypeVar
from typing import Dict, List, NamedTuple, Iterable, Tuple, TypeVar
class ParameterMode(IntEnum):

View file

@ -3,7 +3,7 @@
import sys
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Dict, Iterable, List, NamedTuple, Tuple, TypeVar
from typing import Dict, List, NamedTuple, Iterable, Tuple, TypeVar
class ParameterMode(IntEnum):

69
flake.lock generated
View file

@ -1,69 +0,0 @@
{
"nodes": {
"futils": {
"locked": {
"lastModified": 1638122382,
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github"
},
"original": {
"owner": "numtide",
"ref": "master",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1638286143,
"narHash": "sha256-A+rgjbIpz3uPRKHPXwdmouVcVn5pZqLnaZHymjkraG4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "29d1f6e1f625d246dcf84a78ef97b4da3cafc6ea",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-utils": [
"futils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1637745948,
"narHash": "sha256-DmQG1bZk24eS+BAHwnHPyYIadMLKbq0d1b//iapYIPU=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "c3b4f94350b0e59c2546fa85890cc70d03616b9c",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "master",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"futils": "futils",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,65 +0,0 @@
{
description = "Advent of Code answers";
inputs = {
futils = {
type = "github";
owner = "numtide";
repo = "flake-utils";
ref = "master";
};
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
pre-commit-hooks = {
type = "github";
owner = "cachix";
repo = "pre-commit-hooks.nix";
ref = "master";
inputs = {
flake-utils.follows = "futils";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, futils, nixpkgs, pre-commit-hooks }:
futils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
checks = {
pre-commit = pre-commit-hooks.lib.${system}.run {
src = self;
hooks = {
black = {
enable = true;
};
isort = {
enable = true;
};
nixpkgs-fmt = {
enable = true;
};
};
};
};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
python310 # Latest version at the moment
];
inherit (self.checks.${system}.pre-commit) shellHook;
};
});
}