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
| Hello world! | |
| true | |
| false | |
| 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
| PLAY [localhost] ************************************************************** | |
| GATHERING FACTS *************************************************************** | |
| <localhost> REMOTE_MODULE setup | |
| ok: [localhost] | |
| TASK: [mylib | Test library out] ********************************************** | |
| <localhost> REMOTE_MODULE testlib something=else hello=world | |
| ok: [localhost] => {"argv": ["/home/alpha/.ansible/tmp/ansible-tmp-1472124073.82-220477884547431/testlib", "/home/alpha/.ansible/tmp/ansible-tmp-1472124073.82-220477884547431/arguments"], "data": "something=else hello=world "} |
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 myAnonymous = (b, c) => b*c; | |
| function makeSummer(a, b=2, c=3){ | |
| return (a) => a+b+c; | |
| } | |
| function listPrinter(...d){ | |
| console.log(d); | |
| } |
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
| from setuptools.command.install import install | |
| from setuptools import setup | |
| class root_usr_install(install): | |
| prefix = '/local' | |
| def __init__(self, *args, **kwargs): | |
| install.__init__(self, *args, **kwargs) |
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
| require('sugar'); | |
| export.product = function(){ | |
| var pools = Array.create(arguments); | |
| return pools.reduce(function(accumulated, next){ | |
| return accumulated.map(function(prefix){ | |
| return next.map(function(suffix){ | |
| return prefix.concat([suffix]); |
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
| In [4]: sorted([(p.personal.catchrate, p.natid) for p in pokemon]) | |
| Out[4]: | |
| [(0, 0), | |
| (3, 144), | |
| (3, 145), | |
| (3, 146), | |
| (3, 150), | |
| (3, 243), | |
| (3, 244), | |
| (3, 245), |
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
| // `mongo 127.0.0.1/MMApp collections.js` | |
| function size(size) { | |
| var unit, res, factor=1; | |
| ['B', 'KB', 'MB', 'GB', 'TB'].every(function(unit_) { | |
| factor_ = factor*1024; | |
| res = size/factor_; | |
| unit = unit_; | |
| if(isNaN(res) || res < 1) { | |
| return false; |
NewerOlder