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
| /* This is helpful if you want to download Emoji's for...Slack? Whatever you need. | |
| * Requires cheerio and node-fetch to be available. | |
| * | |
| * Things to update: | |
| * - The scrapeURLs for which Emoji versions you want to download | |
| * - The imageURL used below is the first in the vendor list, which happens to be Apple. If | |
| * you want a different vendor, select something different in the index. | |
| */ | |
| const cheerio = require('cheerio'); |
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
| /* Instructions: | |
| * 1. Copy the spreadsheet at https://docs.google.com/spreadsheets/d/1Phwm-gVZ8rbtULjHTmbvcR5lMEdvhD-RJgw2wOeavOk/edit#gid=1172415592 | |
| * 2. Copy the script below into the Script Editor (Tools->Script Editor) | |
| * 3. In the Script Editor, go to Run->Run function, and select "parseEmails". This will walk you through granting permissions and then start parsing emails. | |
| * 4. That's it! | |
| * | |
| * Notes: | |
| * There may be some limiting as to how many emails it can parse at a time, so you may need to run multiple times to capture everything. | |
| * The script is setup to be idempotent, so you can continue to just run parseEmails() and it will ignore anything that's already been processed. | |
| * Sheet2 is used to keep track of what's been processed, and Sheet1 lists the count of sent and received emails by address. |
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
| ### Description | |
| These functions will take a list of lists of sorted objects and | |
| blends them together based on input target percentages and a target length, | |
| where each element from a given list appears in the final list sorted relatively | |
| to other elements from that list (and backfill from other lists if necessary). | |
| For example, let's say you have sorted lists A, B, and C each of size 10. You | |
| want to blend them into a single list of size 20 with 50% from A, 30% from B, | |
| and 10% from C. In the final list, you would expect 10 elements from A, 6 from | |
| B, and 4 from C. |