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
[alias] | |
del = "!f() { echo deleting remote $1 && git push origin --delete $1 && echo deleting local $1 && git branch -D $1; }; f"; |
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
{ | |
"version": "1.0.0-*", | |
"compilationOptions": { | |
"emitEntryPoint": true | |
}, | |
"dependencies": { | |
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final", | |
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final", | |
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final", |
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
{ | |
"version": "1.0.0-*", | |
"compilationOptions": { | |
"emitEntryPoint": true | |
}, | |
"dependencies": { | |
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final", | |
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final", | |
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final", |
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
{ | |
"projects": [ | |
"src", | |
"../../IEvangelist.NetCore.ClassLib/src", | |
"../../IEvangelist.NetCore.Services/src" | |
] | |
} |
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
{ | |
"projects": [ "src", "test" ], | |
"sdk": { | |
"version": "1.0.0-preview2-003121" | |
} | |
} |
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
module ExampleModule { | |
export class ExampleService implements IExampleService { | |
static $inject = ["$http", "$q"]; | |
private $http: ng.IHttpService; | |
private $q: ng.IQService; | |
constructor($http: ng.IHttpService, | |
$q: ng.IQService) { | |
this.$http = $http; |
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 {Observable} from "RxJS/Rx"; | |
import {Injectable} from "@angular/core"; | |
import {Http} from "@angular/http"; | |
@Injectable() export class ExampleService { | |
constructor(private http: Http) { } | |
getFooBars(onNext: (fooBars: FooBar[]) => void) { | |
this.get("api/foobar") | |
.map(response => <FooBar[]>reponse.json()) |
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
// Simple .ctor() | |
constructor(private http: Http) { } | |
// Is equivalent to... | |
private http: Http; | |
constructor(http: Http) { | |
this.http = http; | |
} |
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
// Simple .ctor() | |
constructor(http: Http) { } | |
// Is equivalent to... | |
http: Http; // When the access modifier is omitted it's defaulted to public | |
constructor(http: Http) { | |
this.http = http; | |
} |
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
// If this call fails, we'll try it again with the same payload two times | |
getFooBars(onNext: (fooBars: FooBar[]) => void) { | |
this.get("api/foobar") | |
.map(response => <FooBar[]>response.json()) | |
.retry(2) | |
.subscribe(onNext, | |
error => | |
console.log("An error occurred when requesting api/foobar.", error)); | |
} |