Skip to content

Instantly share code, notes, and snippets.

View alxhub's full-sized avatar

Alex Rickabaugh alxhub

  • Google, Inc.
  • San Francisco, CA
View GitHub Profile
../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
/**
* 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;
}
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
$ 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
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
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)
#include <stdio.h>
union foo {
long long x;
double y;
};
int main(int argc, char** argv) {
union foo z;
z.x = 0x7ff0000000000000L;
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()
@alxhub
alxhub / test.ts
Last active March 14, 2016 19:17
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;