- Begin with the user in mind
- Check bug reports, and resolve any critical issues
- Review yesterday's todo list
- Create today's todo list
- Announce todo list to team
- Identify and discuss blockers
This file contains 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
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
module.exports = name => { | |
const datapath = path.join(__dirname, `${name}.json`); | |
const history = []; | |
const record = (input, key) => { |
This file contains 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
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
This file contains 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
const replace = async (input, regex, replacer) => { | |
// we need to remove the 'g' flag, if defined, so that all replacements can be made | |
let flags = (regex.flags || '').replace('g', ''); | |
let re = new RegExp(regex.source || regex, flags); | |
let index = 0; | |
let match; | |
while ((match = re.exec(input.slice(index)))) { | |
let value = await replacer(...match); | |
index += match.index; |
This file contains 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
const cmds = { linux: 'xdg-open', win32: 'start', darwin: 'open' }; | |
const open = cmds[process.platform]; | |
const tryOpen = (dirname, editors = ['sublime', 'code', open]) => { | |
try { | |
cp.execSync([editors[0], dirname].join(' ')); | |
console.log('Opening in ' + editors[0]); | |
} catch (err) { | |
if (editors.length === 0) { | |
throw new Error('Cannot find an editor to open'); |
This file contains 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
const cp = require('child_process'); | |
const Koa = require('koa'); | |
const app = new Koa(); | |
const cmds = { linux: 'xdg-open', win32: 'start chrome', darwin: 'open' }; | |
const open = cmds[process.platform]; | |
const PORT = 3000; | |
// response | |
app.use(ctx => { | |
ctx.body = 'Hello Koa'; |
This little guide describes what to do when:
- You see a vulnerability warning for a package, and
- The package has already been fixed, and a patch version has been released.
- Delete all lock files
This file contains 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 variant takes a max depth as the second argument. | |
*/ | |
const permutations = (value, max = value.length) => { | |
let depth = Math.min(max, value.length); | |
let results = []; | |
const permute = (queue = []) => { | |
if (queue.length === depth) { |
Thanks for choosing to contribute to Enquirer! We're so happy that you're contributing to open source projects, and we're even happier that one of those projects is ours!
There is no faster, more effective way to improve a product than from the feedback from the first experience of a new user -- Jon Schlinkert
This file contains 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
curl -s https://api.github.com/users/<USERNAME>/repos?per_page=100 | ruby -rjson -e 'JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["clone_url"]} ]}' |