Advent of code 2019 project
AdventOfCode exportApp.
Run in node:
$ node
> require('./index')
> AdventOfCode.pj_fuelRequirement_(100756)
First, export WebApp with PharoJs playground. Then, make a new bridge and export the AdventOfCode class:
bridge := PjBridge startOn: 1020 title: 'ninja'.
bridge evalBlock: [
|aoc|
aoc:=AdventOfCode.
aoc.
].
bridge stop.
Append the new code to index.js
.
Copy the transpiled code into a javascript interpreter (chrome console works fine).
AdventOfCode.pj_fuelRequirement_(100756)