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
| #Try this: | |
| import sys | |
| import time | |
| for i in range (10): | |
| sys.stdout.write('\r'+str(i)) | |
| time.sleep(0.5) | |
| import time |
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
| loop(Module, State) -> | |
| receive | |
| {call, From, Request} -> | |
| {Result, State2} = Module:handle_call(Request, State), | |
| From ! {Module, Result}, | |
| loop(Module, State2); | |
| {cast, Request} -> | |
| State2 = Module:handle_cast(Request, State), | |
| loop(Module, State2) | |
| end. |
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
| //Функциональный аргумент (Functional argument, “Funarg”, “Фунарг”) — аргумент, значением которого является функция. | |
| function exampleFunc(funArg) { | |
| funArg(); | |
| } | |
| exampleFunc(function () { | |
| alert('funArg'); | |
| }); |
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 () { | |
| // ініціалізований простір. | |
| })(); |
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/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
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
| $ git clone git://github.com/5HT/n2o | |
| $ cd n2o/samples | |
| $ ./mad deps compile plan repl | |
| commit 85eb04782263fff451bca9a05eac6c4912056aec | |
| Author: Maxim Sokhatsky <maxim@synrc.com> | |
| Date: Wed Jan 21 16:52:22 2015 +0200 |