Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valentinvignal/advent-of-code
https://github.com/valentinvignal/advent-of-code
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/valentinvignal/advent-of-code
- Owner: ValentinVignal
- Created: 2022-12-15T12:38:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T04:00:31.000Z (about 1 month ago)
- Last Synced: 2024-10-17T18:09:02.237Z (about 1 month ago)
- Language: TypeScript
- Size: 509 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# advent-of-code
[![wakatime](https://wakatime.com/badge/user/a700230c-ba51-4378-8fbc-fbcb542401ed/project/c93eb0f3-1c1c-4a6e-b811-aee703bdd215.svg)](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();
```