Advent of Code Solutions
advent-of-code aoc

Initial Commit

yemou.pink 29581d10

+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1751984180, 6 + "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", 7 + "owner": "nixos", 8 + "repo": "nixpkgs", 9 + "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "nixos", 14 + "ref": "nixos-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+28
flake.nix
··· 1 + { 2 + description = "Advent of Code"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; 6 + }; 7 + 8 + outputs = 9 + { self, nixpkgs }: 10 + let 11 + systems = [ "x86_64-linux" ]; 12 + forSystems = function: nixpkgs.lib.genAttrs systems (system: function (import nixpkgs { inherit system; })); 13 + in 14 + { 15 + formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; }); 16 + devShells = forSystems (pkgs: { 17 + "2015" = pkgs.mkShellNoCC { 18 + buildInputs = with pkgs; [ 19 + erlang 20 + # erlang-ls # Doesn't seem to work well with escritps 21 + erlfmt 22 + ]; 23 + }; 24 + }); 25 + # TODO: For the `apps` it should be able to run a specific day on a specific year of AOC or the entire year if no 26 + # day was specified. 27 + }; 28 + }
+12
license
··· 1 + Copyright (C) 2025, yemou <dev@mou.pink> 2 + 3 + Permission to use, copy, modify, and/or distribute this software for any purpose 4 + with or without fee is hereby granted. 5 + 6 + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 7 + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 8 + FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 9 + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 10 + OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 11 + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 12 + THIS SOFTWARE.
+5
readme.md
··· 1 + # [Advent of Code](https://adventofcode.com) 2 + These are my solutions for Advent of Code in various languages. 3 + The goal is to do each year in a different language mostly as a way of learning a new language. 4 + 5 + Currently working on year 2015 using [`erlang`](https://erlang.org)