Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lxze/aoc-template-elixir
aoc template repo in elixir
https://github.com/lxze/aoc-template-elixir
aoc aoc-template elixir
Last synced: about 1 month ago
JSON representation
aoc template repo in elixir
- Host: GitHub
- URL: https://github.com/lxze/aoc-template-elixir
- Owner: LXZE
- License: mit
- Created: 2024-11-25T17:29:17.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-29T14:12:32.000Z (about 1 month ago)
- Last Synced: 2024-11-29T15:24:36.714Z (about 1 month ago)
- Topics: aoc, aoc-template, elixir
- Language: Elixir
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AOC Elixir Template
## Installation
Just cloning this repo and start working on your own solution## Command
- Generate template
```sh
mix gen
```
- Generate template and downloading the input from AoC (require .env file and aoc cookie session)
```sh
mix gen -dl
# or mix gen --download
```- Download input from AoC
```sh
mix download
```- Run solution on test input
```sh
mix aoc.test
# or mix aoc.test lib/solutions// which is called by .vscode/tasks.json
```- Run solution on actual input
```sh
mix aoc.run
# or mix aoc.run lib/solutions// which is called by .vscode/tasks.json
```## Config with VS Code
Edit your keyboard shortcut to invoke predefined tasks by adding these config into your `keybindings.json`
```json
{
"key": "cmd+r", // feel free to change
"command": "workbench.action.tasks.runTask",
"args": "run test elixir", // must be the same inside `.vscode/tasks.json`
"when": "editorLangId == elixir"
},
{
"key": "cmd+shift+r",
"command": "workbench.action.tasks.runTask",
"args": "run full elixir",
"when": "editorLangId == elixir"
}
```