Just a collection of node stream utilities.
- concat-stream
- get-stream
- gulp-buffer
- gulp-util.buffer - deprecated
Just a collection of node stream utilities.
| function arrayFrom(a) { | |
| return Array.from(arguments).slice(1); | |
| } | |
| function arraySlice(a) { | |
| return Array.prototype.slice.call(arguments, 1); | |
| } | |
| function argsRest(a, ...args) { | |
| return args; |
| ⌘ – ⌘ – ⌘ – the Command Key symbol | |
| ⌥ – ⌥ – ⌥ – the Option Key symbol | |
| ⇧ – ⇧ – ⇧ – the Shift Key symbol | |
| ⎋ – ⎋ – ⎋ – the ESC Key symbol | |
| ⇪ – ⇪ – ⇪ – the Capslock symbol | |
| ⏎ – ⏎ – ⏎ – the Return symbol | |
| ⌫ – ⌫ – ⌫ – the Delete / Backspace symbol |
| Python 3.4.3+ (3.4:dc10c52c6539, Apr 9 2015, 23:04:55) | |
| [GCC 4.8.2] on linux | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> """Hello | |
| ... There | |
| ... | |
| ... I have some blank lines | |
| ... | |
| ... as well as a trailing newline. | |
| ... """.split("\n") |
| var http = require('http'); | |
| function http_collect(url, callback) { | |
| http.get(url, function(resp) { | |
| var data = []; | |
| resp.setEncoding('utf8'); | |
| resp.on('data', Array.prototype.push.bind(data)); | |
| resp.on('end', function() { | |
| return callback(null, data.join('')); | |
| }); |
| #!/bin/sh | |
| git ls-files "*.mak" | sed 'p; s/mak$/mako/' | xargs -n2 git mv; | |
| bad=$(git grep -l '\.mak\b') | |
| echo $bad | xargs -n1 sed -i 's/\.mak\b/.mako/' | |
| git add $bad | |
| git commit -m "Change '.mak' extension to '.mako'." |
| /* | |
| * Home directory: /var/lib/jenkins/ | |
| * Example Job Workspace: /var/lib/jenkins/.jenkins/workspace/Sterling-make-build/ | |
| */ | |
| def command = """ | |
| apt-cache showpkg python3-pip | |
| """; | |
| def proc = command.execute(); | |
| proc.waitFor(); |