This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { u } = require("../../tools/utils"); | |
| let input = "./input.txt"; | |
| //input = "./input_demo.txt"; | |
| const lines = u.readInputLines(input); | |
| const times = lines[0] | |
| .split(" ") | |
| .filter((o) => o.trim() != "" && !isNaN(o.trim())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { u } = require("../../tools/utils"); | |
| let input = "./input.txt"; | |
| //input = "./input_demo.txt"; | |
| const lines = u.readInputLines(input); | |
| console.time("runtime"); | |
| const cards = lines | |
| .map((line) => line.split(":")[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require("fs"); | |
| const SentryCli = require("@sentry/cli"); | |
| function truncateHash(hash) { | |
| return hash.trim().substring(0, 7) | |
| } | |
| function getShortHash() { | |
| const rev = fs.readFileSync(".git/HEAD").toString(); | |
| if (rev.indexOf(':') === -1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <style type="text/css"> | |
| body { | |
| margin: 0px; | |
| } | |
| #main { | |
| width: 100%; | |
| height: 100%; |