start a new test session
lerna-test-resume --initrun your tests w/ tee
| function updateState (state) { | |
| return console.dir(state); | |
| } | |
| const thaNode = {}; | |
| const host = { | |
| shadowRoot: thaNode | |
| }; |
| meta |
| tell application "Microsoft Outlook" | |
| repeat with calendarEvent in the every calendar event | |
| accept meeting calendarEvent | |
| end repeat | |
| end tell |
| Find: | |
| function ([a-zA-Z]+)(\([a-zA-Z, \{\}]+\)) (\{) | |
| Replace: | |
| const $1 = $2 => $3 |
| /* eslint-disable no-console, no-param-reassign */ | |
| /** | |
| * Returns a filled in board such that there are no 3 consecutive | |
| * jewels (vertically/horizontally) of the same type. | |
| * | |
| * @param widthOfBoard int which provides width of board | |
| * @param heightOfBoard int which provides height of board | |
| * @param jewels array providing valid jewels for board | |
| */ |
| const console = require("console"); | |
| (function () { | |
| console.log(foo); // undefined | |
| { | |
| var foo = 'foo'; | |
| } | |
| })(); | |
| (function () { |
| function isArrayPalindrome (array) { | |
| const forward = [...array].join(); | |
| const reversed = [...array].reverse().join(); | |
| if (reversed == forward) { | |
| return true; | |
| } | |
| return false; | |
| } | |
| const getArraySansIndex = (a, _index) => a.filter((item, index) => index !== _index); |
| #!/usr/bin/env node | |
| const argv = require('yargs-parser')(process.argv.slice(2)); | |
| function getEnvVarForScopeVConfigKey(keyName) { | |
| const {env} = require('process'); | |
| return env[`MONOREPO_${keyName.toUpperCase()}`]; | |
| } | |
| const ScopeVConfiguration = Object.create({ |
| /* Begin cache-related code */ | |
| const sumCache = new Map(); | |
| function getCachedSumResult (array, sum) { | |
| return sumCache.get(`${array}{${sum}`); | |
| } | |
| function cacheSumResult (array, sum, result) { | |
| sumCache.set(`${array}{${sum}`, result); | |
| return result; |