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 Cal Merge for Google Calendar™ (by @HCAWN forked from @imightbeAmy, and then forked again by @andrewmacheret) | |
| // @namespace gcal-multical-event-merge | |
| // @include https://www.google.com/calendar/* | |
| // @include http://www.google.com/calendar/* | |
| // @include https://calendar.google.com/* | |
| // @include http://calendar.google.com/* | |
| // @require https://github.com/gka/chroma.js/blob/main/chroma-light.min.js | |
| // @version 1 | |
| // @grant none |
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 resultMap: Map<string, any> = new Map(); | |
| const loadData = async (loader: Function, ...args: any) => { | |
| // is there a better way... | |
| const key = JSON.stringify(args); | |
| if (resultMap.has(key)) { | |
| const val = resultMap.get(key); | |
| if (val.state === 'loading') { | |
| return await val.promise(); | |
| } else if (val.state === 'failed') { |
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 Hide locked, add like/dislike | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://leetcode.com/problemset/* | |
| // @grant none | |
| // ==/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
| const Twitter = require('lwt') | |
| const request = require('request') | |
| //const {promisify, callbackify} = require('util') | |
| const promisify = require('es6-promisify') | |
| const callbackify = require('callbackify') | |
| const tweet = async (twitterSettings, tweetText) => { | |
| // the following twitter settings are required: | |
| // { | |
| // "accessToken": "...", |
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 moment = require('moment-timezone'); | |
| const request = require('request-promise-native'); | |
| const nhlCssLink = require('./nhl-css-link'); | |
| const nhlApiUrl = 'https://statsapi.web.nhl.com/api/v1'; | |
| let cacheTeams = null; | |
| const cacheSchedules = {}; | |