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
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; |
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
⌘ – ⌘ – ⌘ – 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 |
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
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") |
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 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('')); | |
}); |
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
#!/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'." |
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
/* | |
* 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(); |
NewerOlder