This file contains hidden or 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
| #!/usr/bin/env node | |
| console.log('yay gist') |
This file contains hidden or 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
| var readline = require('readline'); | |
| readline.emitKeypressEvents(process.stdin); | |
| if (process.stdin.isTTY) | |
| process.stdin.setRawMode(true); | |
| process.stdin.on('keypress', (chunk, key) => { | |
| if (key && key.name == 'q') | |
| process.exit(); |
This file contains hidden or 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
| /* | |
| * FormData for XMLHttpRequest 2 - Polyfill for Web Worker | |
| * (c) 2014 Rob Wu <rob@robwu.nl> | |
| * License: MIT | |
| * - append(name, value[, filename]) | |
| * - XMLHttpRequest.prototype.send(object FormData) | |
| * | |
| * Specification: http://www.w3.org/TR/XMLHttpRequest/#formdata | |
| * http://www.w3.org/TR/XMLHttpRequest/#the-send-method | |
| * The .append() implementation also accepts Uint8Array and ArrayBuffer objects |
NewerOlder