Documentación oficial sobre Jest
- Instalaciones de desarrollo (super test es útil para probar Express)
npm install -D jest @types/jest ts-jest supertest
Documentación oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
The Interactive Extensions for JavaScript (IxJS) is a set of methods on top of Iteratable
and AsyncIterable
serving as a standard library for both. Much like its push-based counterpart, the Interactive Extensions for JavaScript unifies the programming model around pull-based collections, either synchronous in the case of Iterable
or asynchronous with AsyncIterable
.
Starting in ES6, the Symbol.iterator
method was introduced to allow for iteration over collections such as Array
, Map
, Set
and even ``Generator. IxJS introduces a number of creation factories and operators that operate on these
Iterable` collections lazily. Each factory can be imported from `'ix/iterable'` and operators from `'ix/iterable/operators'` such as the following creating an iterable via `of` and then transforming each item using the `map` operator. You c
#/bin/bash | |
set -e | |
# switch to master | |
git checkout master | |
# Find all commits added by Gold Fig | |
commit_ids=$(git log --author=gold-fig --format=%H) |
Airbrake | |
Airship | |
Akamai | |
Amplitude | |
Apple App Store | |
Apple Itunes Connect | |
Asayer | |
AWS | |
CircleCI | |
CloudFlare |
(function () { | |
var makeCallback = function(eventType, observer) { | |
if (eventType === 'value') { | |
return function(snap) { | |
observer.onNext(snap); | |
}; | |
} else { | |
return function(snap, prevName) { | |
// Wrap into an object, since we can only pass one argument through. | |
observer.onNext({snapshot: snap, prevName: prevName}); |
package com.firebase.client; | |
import com.firebase.client.core.Constants; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.functions.Action0; | |
import rx.functions.Func1; | |
import rx.subscriptions.Subscriptions; | |
public class RxFirebase { |
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
import kotlin.browser.document | |
import kotlin.browser.window | |
// Type definitions | |
native("Cycle") | |
val Cycle : dynamic = noImpl | |
native("Cycle.h") | |
fun h(tagName: String) : VTree = noImpl |
import Cycle from 'cyclejs'; | |
const { h, Rx } = Cycle; | |
// all html/svg element names << | |
var elements = [ | |
'a', | |
'abbr', | |
'address', | |
'area', |
var Q = require('q'); | |
function delaydo(x) { | |
var deferred = Q.defer(); | |
setTimeout(function() { | |
if (x === 2) { | |
console.log("reject: "+x); | |
deferred.reject(x); | |
} | |
else { |