View watch-pages.json
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
[ | |
{ | |
"url": "CoO: https://a810-dobnow.nyc.gov/publish/Index.html#!/", | |
"proxy": true, | |
"priority": 1, | |
"description": "DOB Now - Current Certificate of Occupancy", | |
"skip": true, | |
"terms": [ | |
{ | |
"term": "\"IsSuccess\":true,", |
View .aliases
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
# Make ls in color | |
alias ls="command ls -G" |
View PromiseResolveAll.js
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
Promise.resolveAll = function petepete(promises) { | |
function reflect(promise) { | |
if (Promise.resolve(promise) !== promise) { | |
return promise; | |
} | |
return promise.then((v) => {return v;}).catch((e) => {return e;}); | |
} | |
return Promise.all(promises.map(reflect)); | |
}; |
View uber.js
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
// To use: Visit https://riders.uber.com/trips, open the Chrome DevTools and | |
// paste this script into the console, then click the > (next page) icon on the | |
// bottom of the page, and once the page has finished loading, run `calcPage()` | |
// again to add that page to your total. Keep going until you've finished all of | |
// the pages. | |
// Note: this script doesn't handle different currencies, everything will be | |
// treated as the same currency. | |
var total = 0.0; | |
var count = 0.0; |
View seamless.js
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
// This probably doesn't work anymore. | |
let lines = ""; | |
var orders = $("tbody#OrderHistoryLikedItem tr"); | |
var count = 0; | |
var amount = 0.0; | |
for (var i = 0; i < orders.length; i++) { | |
try { | |
var tr = $(orders[i]); | |
var d = tr.find("td.date strong")[0].innerText.trim(); | |
var v = tr.find("td.vendor a")[0].innerText.trim(); |