The attached file file spits out a string for direct injection into the head of a page, which will be a lightweight test of the ability to parse and run ES2015 syntax.
This is the original source for the test-case below:
class ಠ_ಠ extends Array{| /** | |
| * @author Jacques Favreau (@betaorbust) | |
| * @fileOverview Console manager. | |
| * The utility will silence all console output (info, log, error) unless a dev cookie is set. | |
| * Does the cookie/silence check on load, and also via the exported methods for turning it on/off | |
| * after pageload. | |
| * Exports a global consoleManager object with the following methods: | |
| * silence(): Shuts the console up. | |
| * restore(): Gets the console all chatty. | |
| * toggle(): toggle the dev cookie state and does an appropriate silence or restore. |
| // Three-Level Bar Icon | |
| // ==================== | |
| // Makes a three-bar icon for showing difficulty, signal, etc. from a single HTML element. | |
| // | |
| // # | |
| // # # | |
| // # # # | |
| // | |
| // Actual Image:  | |
| // |
The attached file file spits out a string for direct injection into the head of a page, which will be a lightweight test of the ability to parse and run ES2015 syntax.
This is the original source for the test-case below:
class ಠ_ಠ extends Array{| /** | |
| * Deletes the largest `numToDelete` files older than `minAgeDays` on your slack. | |
| * Can only do 1000 at a time because I didn't want to deal with pagination. | |
| * YOU NEED TO BE AN ADMIN FOR THIS TO DELETE THINGS THAT YOU DIDN'T UPLOAD! | |
| * @param {string} token A legacy slack token. Get yours at https://api.slack.com/custom-integrations/legacy-tokens | |
| * @param {number} minAgeDays The number of days old a file can be to be deleted. | |
| * @param {number} numToDelete The number of files to delete total. | |
| */ | |
| async function deleteOldLargeFiles(token, minAgeDays, numToDelete) { | |
| // Slack does everything in seconds, apparently. |
This project has been moved into github-loppers.