- E2E Testing Framework
- DalekJS ...
- Intern ... based on Leadfoot
- Leadfoot ...
- Nightwatch ...
- Protractor ... based on WebDriverJS
- Testium ...
- WD.js ...
- Webdriver-sync ...
- WebdriverIO ...
This file contains 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 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 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 | |
most-perf@0.10.0 /Users/yamauchi/.ghq/github.com/cujojs/most/test/perf | |
├── @reactivex/rxjs@5.0.0-beta.0 | |
├── baconjs@0.7.83 | |
├─┬ benchmark@2.0.0-pre (git://github.com/bestiejs/benchmark.js.git#d996372edec2da9f7265b0d9d5138542d0b756ec) | |
│ ├── lodash-compat@3.10.1 | |
│ └── platform@1.3.0 | |
├── highland@2.5.1 | |
├── kefir@3.2.0 | |
├── lodash@3.10.1 |
This file contains 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 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 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 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 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) | |
} |