Skip to content

trofi/AoC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are my attempts at solving https://adventofcode.com/ puzzles.

How to run

Most of the solutions are in rust and should run as:

$ rustc -O main.rs && ./main

Very occasionally there is an extra dependency on re2c or on a cargo package.

For convenience I added a workspace that includes a few sample projects to allow rust-analyzer and cargo run to Just Work when ran form a solution directory. Over time I'll try to convert most of the past solutions to it.

nix development shell

This repository contains flake.nix file. It allows you to drop into a development shell with all required prerequisites.

There is one caveat: I don't track flake.lock and explicitly ignore it in .gitignore. You will need an extra --no-write-lock-file flag to run it successfully:

$ nix develop --no-write-lock-file

I personally use the following command to use nixpkgs version from my running system:

$ nix develop --no-write-lock-file --override-input nixpkgs flake:nixpkgs

About

My silly solutions for https://adventofcode.com challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages