This file contains 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
/* ==UserStyle== | |
@name AoC mods | |
@description Less jarring font and colors (my opinion) and mobile readability. On mobile wide content is scrollable. | |
@match https://adventofcode.com/* | |
==/UserStyle== */ | |
[title] { | |
text-decoration: underline; | |
text-decoration-style: dotted; | |
text-decoration-thickness: 2px; |
This file contains 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
export default function getPromiseLib(lib) { | |
return new Proxy(lib, { | |
get: (target, prop) => (...args) => | |
new Promise((resolve, reject) => { | |
target[prop](...args, (err, ...params) => { | |
if (err) { | |
reject(err); | |
} else { | |
resolve(params); | |
} |
This file contains 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
var ical = require('ical'), | |
twit = require('twit'), | |
Twit = new twit({ | |
'consumer_key': 'your_consumer_key_here', | |
'consumer_secret': 'your_consumer_secret_here', | |
'access_token': 'your_access_token_here', | |
'access_token_secret': 'your_access_token_secret_here' | |
}), | |
now = new Date(); |