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
| Array.toArray = Array.prototype.slice.call; | |
| Array.copy = Array.prototype.slice.call; |
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
| # Read input file | |
| var str input ; cat "/folder/somefile.txt" > $input | |
| # Remove everything before "foo" | |
| stex "]^foo^" $input > null | |
| # Remove everything after "foo" | |
| stex "^foo^[" $input > null |
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 maybe(fn) { | |
| let i = 0, length = 0 | |
| return function () { | |
| length = arguments.length | |
| if (length) { | |
| for (i = 0; i < length; ++i) { | |
| if (!arguments[i]) { | |
| return; | |
| } | |
| } |
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 compose (a, b) | |
| { | |
| return function applyArguments (c) | |
| { | |
| return a(b(c)); | |
| } | |
| } | |
| /** | |
| * @param {Function} a |
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 unary(fn) | |
| { | |
| if (fn.length == 1) | |
| { | |
| return fn; | |
| } | |
| else return function(item) | |
| { | |
| return fn.call(this, item); | |
| } |
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 tap(value) | |
| { | |
| return function(fn) | |
| { | |
| if (typeof(fn) === 'function') | |
| { | |
| fn(value); | |
| } | |
| return value; | |
| } |
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
| INSERT INTO iad_blitz.test (c) | |
| SELECT (MAX(self_selection.c) + 1) | |
| FROM iad_blitz.test AS self_selection | |
| WHERE NOT EXISTS ( | |
| SELECT self_does_not_exist.c | |
| FROM iad_blitz.test AS self_does_not_exist | |
| WHERE self_does_not_exist.c=4 | |
| ); |
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
| VBoxManage hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter" --ip XX.XX.XX.XX --netmask 255.255.255.0 |
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
| angles,sin degrees: | |
| rotate the camera along the Y axis 45 degrees, then rotate up the X axis by -35 degrees. |
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
| ssh USERNAME@TARGETDOMAIN -o "ProxyCommand=nc -X connect -x PROXYHOST:PROXYPORT %h %p" |