I hereby claim:
- I am david-driscoll on github.
- I am daviddriscoll (https://keybase.io/daviddriscoll) on keybase.
- I have a public key ASCoqdXZ3yJzXztd7-46YIgl4UhxTEN-KPFQHLY9lhGtGgo
To claim this, I am signing this object:
namespace HelloWorld | |
{ | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder app) | |
{ | |
app.Run(async (context) => | |
{ | |
await context.Response.WriteAsync("Hello World!"); | |
}); |
namespace HelloWorld | |
{ | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder app) | |
{ | |
app.Run(async (context) => | |
{ | |
await context.Response.WriteAsync("Hello World!"); | |
}); |
namespace HelloWorld | |
{ | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder app) | |
{ | |
app.Use(async (context, next) => | |
{ | |
await context.Response.WriteAsync("Hello"); | |
await next(); |
namespace HelloWorld | |
{ | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder app) | |
{ | |
var r = new Random(); | |
app.MapWhen(context => r.Next(0, 2) > 0, | |
subApp => subApp.Use(async (context, next) => | |
{ |
var Nested; | |
(function (Nested) { | |
var Namespaces; | |
(function (Namespaces) { | |
var Class1 = (function () { | |
function Class1() { | |
} | |
return Class1; | |
})(); | |
Namespaces.Class1 = Class1; |
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: |
var s = '/*- *compute n:2-5* combineLatest<T, {|X|}>({_|x|: ObservableInput<|X|>}): Observable<[T, {|X|}]>; -*/\n\ | |
/*- *compute n:2-5* combineLatest<T, {|X|}>(array: [{ObservableInput<|X|>}]): Observable<[T, {|X|}]>; -*/\ | |
/*- *compute n:2-5* combineLatest<T, {|X|}, TResult>({_|x|: ObservableInput<|X|>}, project: (v1: T, {|x|: |X|}) => TResult): Observable<TResult>; -*/\ | |
/*- *compute n:2-5* combineLatest<T, {|X|}, TResult>(array: [{ObservableInput<|X|>}], project: (v1: T, {|x|: |X|}) => TResult): Observable<TResult>; -*/'; | |
var captureRegex = /\/\*\-(.*?)-\*\//g; | |
var computeNumberRegex = /\*compute n\:(\d.*?)\*/; | |
var tokenRegex = /\{.*?\}/g; | |
var capture; |
var Subject = require('rxjs').Subject; | |
function clog(msg) { | |
var div = document.createElement('div'); | |
div.innerText = msg; | |
document.body.appendChild(div); | |
} | |
// Setup subject and a subscription | |
var numbers = new Subject(); |
void Main() | |
{ | |
var cb = new ContainerBuilder(); | |
cb.RegisterSource(new ContravariantRegistrationSource()); | |
cb.RegisterAssemblyTypes(typeof(IMediator).Assembly).AsImplementedInterfaces(); | |
cb.RegisterAssemblyTypes(this.GetType().Assembly) | |
.Where(v => v.IsClosedTypeOf(typeof(IAsyncRequestHandler<,>))) | |
.As(t => t.GetInterfaces() | |
.Where(v => v.IsClosedTypeOf(typeof(IAsyncRequestHandler<,>))) | |
.Select(v => new KeyedService(typeof(IAsyncRequestHandler<,>), v))); |
I hereby claim:
To claim this, I am signing this object: