http://docs.aws.amazon.com/cli/latest/userguide/using-s3-commands.
aws s3 sync <source> <target> [--options]| export function listNodeMidiPorts(portType) { | |
| const io = new require('midi')[portType]() | |
| return Array(io.getPortCount()) | |
| .fill(null) | |
| .map((_, index) => io.getPortName(index)) | |
| } | |
| export function getNodeMidiPortNumberByName(portType, name) { | |
| const io = new require('midi')[portType]() |
| { | |
| "plugins": [ | |
| [ | |
| "module-resolver", | |
| { | |
| "root": ["./src"], | |
| "alias": { | |
| "^\\$(.+)": "./src/\\1" | |
| } | |
| } |
| position | |
| top | |
| right | |
| bottom | |
| left | |
| z-index | |
| display | |
| float | |
| width | |
| height |
http://docs.aws.amazon.com/cli/latest/userguide/using-s3-commands.
aws s3 sync <source> <target> [--options]| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| max_line_length = 100 |
| // requires node > 8 | |
| const lebab = require('lebab') | |
| const prettier = require('prettier') | |
| const util = require('util') | |
| const readFile = util.promisify(require('fs').readFile) | |
| ;(async () => { | |
| try { | |
| const input = process.argv.slice(2)[0] | |
| const body = await readFile(input, 'utf8') |
| function omit(keys, obj) { | |
| return keys.reduce((o, k) => { | |
| o[k] = obj[k] | |
| return o | |
| }, {}) | |
| } |
| function chunk(array, chunkSize) { | |
| if (!chunkSize) throw new Error('chunkSize must be greater than 0') | |
| return array.reduce((chunked, value, i) => { | |
| if (!(i % chunkSize)) chunked.push([]) | |
| chunked[chunked.length - 1].push(value) | |
| return chunked | |
| }, []) | |
| } |
| const { Suite } = require('benchmark') | |
| const test = (specs = {/*name:fn*/}) => { | |
| const suite = new Suite() | |
| Object.keys(specs).forEach(name => suite.add(name, specs[name])) | |
| suite.on('cycle', e => console.info(String(e.target))) | |
| suite.on('complete', () => console.info(`Fastest is ${suite.filter('fastest').map('name')}`)) | |
| suite.run({ async: false }) | |
| } | |
| // // EXAMPLE: |
| const md = mdColors() | |
| const LIGHT = false | |
| module.exports = { | |
| config: { | |
| fontSize: 12, | |
| fontFamily: `"Fira Code", "Droid Sans Mono", "DejaVu Sans Mono", "Lucida Console", monospace`, | |
| // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █ | |
| cursorShape: `BEAM`, |