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
// ==UserScript== | |
// @name Monash Maps location search booster | |
// @namespace nick.tay.blue | |
// @match https://maps.monash.edu/ | |
// @grant none | |
// @version 0.1.2 | |
// @author Nicholas Tay <[email protected]> | |
// @description Adds location as context to the MazeMap API before searching to improve relevance of searches | |
// ==/UserScript== |
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
// Day 1 Part 1 | |
Math.max(...input.split('\n').reduce((acc, val) => (val === '' ? [...acc, 0] : (acc.slice(0, -1).concat(acc[acc.length-1] + Number(val)))), [0])); | |
// Day 1 Part 2 | |
new Int32Array(input.split('\n').reduce((acc, val) => (val === '' ? [...acc, 0] : (acc.slice(0, -1).concat(acc[acc.length-1] + Number(val)))), [0])).sort().slice(-3).reduce((a, b) => a + b); | |
// Day 2 Part 1 | |
input | |
.split('\n') | |
.map(x => [x[2].charCodeAt(0)-88, x[0].charCodeAt(0)-65]) | |
.reduce((acc, [hand, opp]) => (acc + hand+1 + ((hand === opp) ? 3 : (((opp + 1) % 3 === hand) ? 6 : 0))), 0); |
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
{ | |
"background": "#1A1B26", | |
"black": "#15161E", | |
"blue": "#7AA2F7", | |
"brightBlack": "#414868", | |
"brightBlue": "#7AA2F7", | |
"brightCyan": "#7DCFFF", | |
"brightGreen": "#9ECE6A", | |
"brightPurple": "#BB9AF7", | |
"brightRed": "#F7768E", |
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
// ==UserScript== | |
// @name nyaa copy all magnets | |
// @namespace nick.tay.blue | |
// @match https://nyaa.si/* | |
// @grant none | |
// @version 0.1.0 | |
// @author Nicholas Tay <[email protected]> | |
// @description Copy all visible magnet links from results page | |
// ==/UserScript== |
OlderNewer