I hereby claim:
- I am unicodesnowman on github.
- I am caplingerc (https://keybase.io/caplingerc) on keybase.
- I have a public key whose fingerprint is 7C79 5868 4E15 F367 F392 6DFF B3CA C4C3 E1A9 C7D4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| 2019-02-07T14:45:11.459Z DEBUG wdio-config: @wdio/sync found, running tests synchronous | |
| 2019-02-07T14:45:12.028Z DEBUG wdio-cli:run: Run suite with config /Users/christopher/development/stitch-client/wdio.conf.js and params { _: [], '$0': 'node_modules/.bin/wdio' } | |
| RUNNING 0-0 in chrome - /test/specs/my_test.js | |
| Stdout: | |
| 2019-02-07T14:45:12.129Z INFO wdio-cli:Launcher: Run onPrepare hook | |
| 2019-02-07T14:45:13.398Z INFO wdio-local-runner: Start worker 0-0 with arg: | |
| Test Suites: 0 passed, 1 total (0% completed) |
| function takeAll(cursor, promise = cursor.next(), acc = []) { | |
| return promise.then(item => { | |
| if (!item) { | |
| return acc; | |
| } | |
| return takeAll(cursor, cursor.next(), acc.concat(item)); | |
| }); | |
| } | |
| exports = function(payload) { |
| (defn maximum-gap [xs] | |
| (if (< (count xs) 2) 0 | |
| (->> (sort xs) | |
| (partition 2 1) | |
| (map (fn [[a b]] (- b a))) | |
| (apply max)))) | |
| (maximum-gap [3 2 6 1 3]) | |
| (maximum-gap [12 18 45 23 76 11]) |
| function curry(fn, ...initialArgs) { | |
| const numArgs = fn.length; | |
| return (function iter(acc, callCount) { | |
| return (...callArgs) => { | |
| let calls = [...acc, ...callArgs]; | |
| if (numArgs === [...calls, ...initialArgs].length) { | |
| return fn(...calls, ...initialArgs) | |
| } else { | |
| return iter(calls, callCount + 1); | |
| } |