- Nesting:
.anElement {
&_aBlock {
…
}
&_anotherBlock {
…
fs = require('fs') | |
/* | |
* Wrap old-style callback with promise explicitly created... | |
*/ | |
const readfolderPromise = (folder) => { | |
if (folder === undefined) { | |
folder = process.cwd() | |
} | |
console.log(folder) |
.anElement {
&_aBlock {
…
}
&_anotherBlock {
…
npm scripts
are low-level and leverage the actual library you want to use (example: "lint": "eslint ./"
)package.json
is a central place to see what scripts are available (also npm run
will list all scripts)"complex-script": "babel-node tools/complex-script.js"
)npm scripts
are more powerful than one might first think (pre/post hooks, passing arguments, config variables, chaining, piping, etc...)#WIP
Last updated: Wednesday, April 6
This is a quick primer for the cool 1.8.9 kids. Knowledge of 1.8.9 assumed.
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
# INCIDENT DATE - INCIDENT TYPE | |
## Meeting | |
#### Waiving meetings | |
In some cases the IC might determine that a PM meeting for the incident isn't needed. | |
If the IC decides to waive the meeting please replace the `Meeting` section with a | |
note indicating the meeting has been waived (example: `Meeting waived: Paul Mooring`) |
m=Math.random,v=255;Array.from(document.querySelectorAll("*")).forEach(e=>{e.style.background=`rgb(${m()*v|0},${m()*v|0},${m()*v|0})`}) |