Skip to content

Commit

Permalink
day zero
Browse files Browse the repository at this point in the history
  • Loading branch information
dieseltravis committed Dec 1, 2024
1 parent 62081e9 commit 644fc5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2024.12.01",
"description": "Travis's Advent of Code 2024",
"author": "Travis Hardiman",
"homepage": "https://meowing-holy-carbon.glitch.me/",
"homepage": "https://github.com/dieseltravis/aoc2024/",
"main": "server.js",
"scripts": {
"test": "node --check server.js && semistandard && eslint server.js public/*.js",
Expand All @@ -22,19 +22,18 @@
"standard-engine": "^15.1.0"
},
"repository": {
"url": "https://glitch.com/edit/#!/meowing-holy-carbon"
"url": "https://github.com/dieseltravis/aoc2024/"
},
"license": "Hippocratic-3.0",
"keywords": [
"glitch",
"adventofcode",
"advent",
"advent-of-code",
"advent-of-code-2024"
],
"browserslist": [
"defaults",
"node > 14",
"node > 18",
"fully supports es6-module",
"maintained node versions"
],
Expand Down
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ for (let d = 1; d <= 25; d++) {
});
});
});

const partStats = [];
for (let p = 1; p <= 2; p++) {
// string part
Expand Down Expand Up @@ -176,6 +177,7 @@ fs.readFile(path.join(__dirname, 'views/stats.ntl'), function (err, content) {
a.push(day);
return a;
}, []);

const statHtml = jsStats.reduce((a, d, i) => {
const key = 'day_' + (i + 1);
const p1 = d[0];
Expand Down

0 comments on commit 644fc5d

Please sign in to comment.