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
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(33,37): error TS7006: Parameter 'a4' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(33,41): error TS7006: Parameter 'a5' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(33,45): error TS7006: Parameter 'a6' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(33,49): error TS7006: Parameter 'a7' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(33,53): error TS7006: Parameter 'a8' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(33,57): error TS7006: Parameter 'a9' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilities.ts(37,25): error TS7006: Parameter 'a1' implicitly has an 'any' type. | |
../angular/modules/angular2/src/reflection/reflection_capabilitie |
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
/** | |
* A very minimal interface for a key-value store, designed as an abstraction | |
* layer over IndexedDB. | |
*/ | |
interface Idb { | |
get(key: string): Object; | |
put(key: string, value: Object): boolean; | |
remove(key: string): boolean; | |
} |
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
Cook macaronis | |
4 cups milk – heat in microwave | |
3 tbls butter – melt in pan | |
Whisk in about 4 tbls of cornstarch – try to make sure it doesn’t lump up on you | |
Immediately but slowly add warmed milk to the butter/cornstarch mix | |
Slowly heat on stove until thick | |
Add Cheese and melt cheese in milk mix | |
In pan, add cheese mix to macaronis |
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
$ go run src/ksp/kraken/tool/*.go --input ~/Documents/persistent.sfs vessel list --type ship | |
[sh] Ike I | |
[sh] Dres Ranger | |
[sh] Jool Lander | |
[sh] Jool Return Capsule | |
[sh] Alris' Shipwreck | |
[sh] Raigh's Debris | |
$ go run src/ksp/kraken/tool/*.go --input ~/Documents/persistent.sfs vessel list --type debris | |
[db] Zoology Module Debris | |
[db] Zoology Module Debris |
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
func TestNetworkChannel_ModeChange(t *testing.T) { | |
var wg sync.WaitGroup | |
tn, hubA := newTestNetwork(t, "hub.a", &wg) | |
hubB := hubA.NewLink("hub.b") | |
// Two clients | |
alpha := hubA.NewClient("alpha") | |
beta := hubB.NewClient("beta") | |
// Both join #test |
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
func TestNickCollisionDuringLink(t *testing.T) { | |
wg := &sync.WaitGroup{} | |
tn, hubA := newTestNetwork(t, "hub.a", wg) | |
hubB := tn.NewServer("hub.b") | |
// Add 3 clients on A and the same 3 clients on B. | |
// The first has an older timestamp on A, the last on B, and the middle | |
// is tied. | |
hubA.SetTS(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
func TestNickCollisionDuringLink(t *testing.T) { | |
wg := &sync.WaitGroup{} | |
tn, hubA := newTestNetwork(t, "hub.a", wg) | |
hubB := tn.NewServer("hub.b") | |
// Add 3 clients on A and the same 3 clients on B. | |
// The first has an older timestamp on A, the last on B, and the middle | |
// is tied. | |
hubA.SetTS(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
#include <stdio.h> | |
union foo { | |
long long x; | |
double y; | |
}; | |
int main(int argc, char** argv) { | |
union foo z; | |
z.x = 0x7ff0000000000000L; |
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
return socketService | |
.connectSubject | |
.first((x) => x) | |
.concat(socketService.checkAuth().take(1)) | |
.flatMap((isLoggedIn) => { | |
if (isLoggedIn) { | |
return Observable.from(true); | |
} else { | |
return Observable.fromPromise(socketService | |
.getToken() |
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
import {Component, AfterViewInit, ElementRef, ViewChild} from 'angular2/core'; | |
@Component ({ | |
selector: 'my-google-place-search', | |
template: `<input #pacinput id= "pac-input" class="controls" type="text" placeholder="Address">` | |
}) | |
export class GooglePlaceSearchComponent implements AfterViewInit { | |
@ViewChild('pacinput') ref: ElementRef; |