https://github.com/valentinvignal/advent-of-code
https://github.com/valentinvignal/advent-of-code
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/valentinvignal/advent-of-code
- Owner: ValentinVignal
- Created: 2022-12-15T12:38:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-04-15T07:32:13.000Z (3 months ago)
- Last Synced: 2026-04-15T09:35:52.299Z (3 months ago)
- Language: TypeScript
- Size: 774 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# advent-of-code
[](https://wakatime.com/badge/user/a700230c-ba51-4378-8fbc-fbcb542401ed/project/c93eb0f3-1c1c-4a6e-b811-aee703bdd215)
## Installation
```bash
npm i
```
## Run a file
```bash
npm run run src/{year}/{day}/{part}.ts
```
## Download the .txt file
Open the browser console on the puzzle input page and run the following code:
```js
function download() {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(document.querySelector('body > pre').innerText));
element.setAttribute('download', 'input.txt');
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}
download();
```