Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/RussellDash332/advent-of-code

Collection of my Advent of Code repositories from 2015-2023 - 450/450 stars ⭐
https://github.com/RussellDash332/advent-of-code

advent-of-code advent-of-code-2015 advent-of-code-2016 advent-of-code-2017 advent-of-code-2018 advent-of-code-2019 advent-of-code-2020 advent-of-code-2021 advent-of-code-2022 advent-of-code-2023 advent-of-code-python advent-of-code-python3 aoc

Last synced: 6 days ago
JSON representation

Collection of my Advent of Code repositories from 2015-2023 - 450/450 stars ⭐

Lists

README

        

# Advent of Code
Collection of my Advent of Code (AOC) repositories. For codes before 2023, tap on the cards to redirect you to the respective repository!

[![2015](https://github-readme-stats.vercel.app/api/pin/?theme=react&username=RussellDash332&repo=aoc-2015)](https://github.com/RussellDash332/aoc-2015)
[![2016](https://github-readme-stats.vercel.app/api/pin/?theme=highcontrast&username=RussellDash332&repo=aoc-2016)](https://github.com/RussellDash332/aoc-2016)
[![2017](https://github-readme-stats.vercel.app/api/pin/?theme=omni&username=RussellDash332&repo=aoc-2017)](https://github.com/RussellDash332/aoc-2017)
[![2018](https://github-readme-stats.vercel.app/api/pin/?theme=great-gatsby&username=RussellDash332&repo=aoc-2018)](https://github.com/RussellDash332/aoc-2018)
[![2019](https://github-readme-stats.vercel.app/api/pin/?theme=chartreuse-dark&username=RussellDash332&repo=aoc-2019)](https://github.com/RussellDash332/aoc-2019)
[![2020](https://github-readme-stats.vercel.app/api/pin/?theme=gotham&username=RussellDash332&repo=aoc-2020)](https://github.com/RussellDash332/aoc-2020)
[![2021](https://github-readme-stats.vercel.app/api/pin/?theme=monokai&username=RussellDash332&repo=aoc-2021)](https://github.com/RussellDash332/aoc-2021)
[![2022](https://github-readme-stats.vercel.app/api/pin/?theme=react&username=RussellDash332&repo=aoc-2022)](https://github.com/RussellDash332/aoc-2022)

## Note to Self
```sh
export X=... # day number, 2 digits
export Y=... # year

# Note that .in files are hidden but it should be within Day-/.in

# Python
cd ~/advent-of-code/aoc-$Y/Day-$X/Python && python main.py < ../$X.in && cd ../../..

# JavaScript
cd ~/advent-of-code/aoc-$Y/Day-$X/JavaScript && node main.js < ../$X.in && cd ../../..

# Java
cd ~/advent-of-code/aoc-$Y/Day-$X/Java && javac Main.java && java Main < ../$X.in && cd ../../..

# C++
cd ~/advent-of-code/aoc-$Y/Day-$X/C++ && g++ -o mainc main.cpp && ./mainc < ../$X.in && cd ../../..

# Haskell
cd ~/advent-of-code/aoc-$Y/Day-$X/Haskell && runhaskell main.hs && cd ../../..

# Rust
cd ~/advent-of-code/aoc-$Y/Day-$X/Rust && rustc main.rs && ./main < ../$X.in && cd ../../..

# Ruby
cd ~/advent-of-code/aoc-$Y/Day-$X/Ruby && ruby main.rb < ../$X.in && cd ../../..
```