- E2E Testing Framework
- DalekJS ...
- Intern ... based on Leadfoot
- Leadfoot ...
- Nightwatch ...
- Protractor ... based on WebDriverJS
- Testium ...
- WD.js ...
- Webdriver-sync ...
- WebdriverIO ...
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('espower-babel')({ | |
| cwd: process.cwd(), | |
| pattern: 'tmp/test/**/*-test.js', | |
| espowerOptions: { | |
| patterns: [ | |
| 'assert(value, [message])', | |
| 'assert.ok(value, [message])', | |
| 'assert.equal(actual, expected, [message])', | |
| 'assert.notEqual(actual, expected, [message])', | |
| 'assert.strictEqual(actual, expected, [message])', |
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
| {} |
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
| $ npm ls | |
| [email protected] /Users/yamauchi/.ghq/github.com/cujojs/most/test/perf | |
| ├── @reactivex/[email protected] | |
| ├── [email protected] | |
| ├─┬ [email protected] (git://github.com/bestiejs/benchmark.js.git#d996372edec2da9f7265b0d9d5138542d0b756ec) | |
| │ ├── [email protected] | |
| │ └── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] |
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
| // RxJS CurrentThreadScheduler | |
| const queue = []; | |
| const enqueue = (action) => queue.push(action); | |
| const peek = () => queue[0]; | |
| const dequeue = () => queue.shift(); | |
| const run = () => { | |
| while (queue.length > 0) { | |
| const action = peek(); | |
| action(); | |
| dequeue(); |
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
| # No Scheduler | |
| # No Observer (onError & onCompleted) | |
| # No Disposable | |
| class Observable | |
| @from: (array) -> | |
| new FromObservable(array) | |
| filter: (predicate) -> | |
| new FilterObservable(@, predicate) |
- 【個人メモ】JSONのパースにjmespathを使ってみよう - Qiita
- AWS CLI の --query で複数のタグでインスタンスを検索 - Qiita
- AWS CLIのフィルターとクエリーの使い方についてまとめてみた | Developers.IO
- aws-cli で使える –query = jmespath をガッツリ使い込む | cloudpack技術情報サイト
- JMESPath — JMESPath
- jq - AWS CLIを使ってEC2インスタンスの情報を取得する - Qiita
AWS CLI は 1.2 以降で --query オプションが追加されている。ここでは JMESPath による query を指定できる。
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
| describe 'distinctUntilChanged', -> | |
| it 'comparer', -> | |
| isEqual = require 'lodash.isequal' | |
| subjectX = new Rx.Subject() | |
| subjectX | |
| .distinctUntilChanged null, isEqual | |
| .toArray() | |
| .subscribe (a) -> | |
| # currentKey was updated by `o.value = 2` | |
| assert a.length is 1 |
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
| package main | |
| import "fmt" | |
| func f(a [6]int) { | |
| a[0] = 100 | |
| } | |
| func g(s []int) { | |
| s[0] = 100 |
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
| package main | |
| import "fmt" | |
| import "math" | |
| func Sqrt(x float64) float64 { | |
| var z float64 = 1.0 | |
| for i := 0; i < 10; i++ { | |
| z = z - (z*z-x)/(2*z) | |
| } |