Skip to content

furic/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Advent of Code solutions, by Richard Fu.

Code Run

To run TypeScripts in terminal, easiest way is using ts-node:

> npm i -g ts-node

The repo uses @types/node type definitions for node:

> npm i
> ts-node <filename>.ts

Otherwise, you can also skip npm i by ignoring the type errors:

> ts-node --logError <filename>.ts
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
S M T W T F S
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31