Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pitr/aoc

Advent of Code
https://github.com/pitr/aoc

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 adventofcode aoc apl

Last synced: 14 days ago
JSON representation

Advent of Code

Awesome Lists containing this project

README

        

# Advent of Code

My solutions to Advent of Code.

- 2015 - APL complete (missing 4 as it requires MD5)
- 2016 - APL complete (missing 5, 14, 17 as they require MD5)
- 2017 - APL complete
- 2018 - APL complete
- 2019 - Ruby complete
- 2020 - Mix of J/Ruby/APL, complete
- 2021 - APL complete
- 2022 - APL complete, some K
- 2023 - APL complete

## APL setup

`⎕IO` is always assumed to be 0. Solutions developed iteratively in Sublime Text, using the Build system.

Requirements:

- [Dyalog APL](https://www.dyalog.com/)
- [Sublime Text](https://www.sublimetext.com/)
- [APL package for Sublime Text](https://github.com/StoneCypher/sublime-apl)

### `~/.dyalog/dyalog.dcfg`

```
{ settings: {
Default_IO: 0,
Default_PP: 15,
Default_PW: 32767,
Dyalog_LineEditor_Mode: 1,
MAXWS: "4G",
Log_Size: "2M",
}}
```

### `APL.sublime-build`

Custom build system that relies on dyalogscript.

Note: replace with your own /PATH/HOME, `~/` for home directory doesn't work.

```
{
"cancel": { "kill": true },
"cmd": [
"/usr/local/bin/dyalogscript",
"ConfigFile=/PATH/HOME/.dyalog/dyalog.dcfg",
"$file"
],
"selector": "source.apl"
}
```

### `APL.sublime-settings`

```
{
"auto_complete": false,
"caret_style": "solid",
"draw_indent_guides": false,
"ensure_newline_at_eof_on_save": true,
"fold_buttons": false,
"font_face": "APL386 Unicode",
"font_size": 22,
"line_numbers": false,
"translate_tabs_to_spaces": true
}
```