usage
start a new test session
lerna-test-resume --init
run your tests w/ tee
autoload -U add-zsh-hook | |
load-nvmrc() { | |
local node_version="$(nvm version)" | |
local nvmrc_path="$(nvm_find_nvmrc)" | |
if [ -n "$nvmrc_path" ]; then | |
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
if [ "$nvmrc_node_version" = "N/A" ]; then | |
nvm install |
{"version":1,"resource":"file:///Users/jameswomack/Projects/github/SportsCardInvestor/sci-api/jest.config.js","entries":[{"id":"Xi7a.js","source":"Workspace Edit","timestamp":1663784147251}]} |
start a new test session
lerna-test-resume --init
run 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); |