diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/sleepsort.coffee')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/sleepsort.coffee | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/sleepsort.coffee b/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/sleepsort.coffee deleted file mode 100644 index 863ad14a..00000000 --- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/sleepsort.coffee +++ /dev/null @@ -1,20 +0,0 @@ -### -Sort integers from the command line in a very ridiculous way: leveraging timeouts :P -### - -system = require 'system' - -if system.args.length < 2 - console.log "Usage: phantomjs sleepsort.coffee PUT YOUR INTEGERS HERE SEPARATED BY SPACES" - phantom.exit 1 -else - sortedCount = 0 - args = Array.prototype.slice.call(system.args, 1) - for int in args - setTimeout (do (int) -> - -> - console.log int - ++sortedCount - phantom.exit() if sortedCount is args.length), - int - |