My solutions for Advent of Code.
Year | Language |
---|---|
2016 | Dart |
2017 | Python |
2018 | Python |
2019 | Python |
2020 | Python |
2021 | TypeScript |
2022 | Go |
2023 | Dart |
This is a polyglot repo to practice algorithms, languages, and new ways of writing code with Advent of Code (AoC) as the backdrop. Each subfolder contains my solutions for a given year of AoC.
This section outlines how the development environment is set up for each language.
Using fvm to manage multiple Flutter / Dart versions
fvm use --force
- Select
3.13.6
(figure out how to make this project specific)
fvm dart [path]
fvm dart run --enable-asserts [path]
Using goenv to manage mutiple Go versions
- Install version specified in
.go-version
file
- Create and activate virtual environment for Python version specified in
.python-version
make python-install
to install dependencies.
$ ipython
%run 2020/day01_expense_report.py
pytest 2020/day01_expense_report.py
- Install node version specified in
.nvmrc
npm install
- VSCode:
F5
- Terminal:
npx ts-node [path-to-file]
Need to figure out how to do it in TS. What testing framework works is a good fit here?
- install vscode-ts-debug and set up launch configuration
- if there are linking errors:
npm link ts-node
- Use
debugger;
keyword to add breakpoint F5
to start debugger