View Bson.cs
This file contains 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
void Main() | |
{ | |
var bson = new MongoDB.Bson.BsonDocument(new Dictionary<string, object> | |
{ | |
["ChildishField"] = "childish", | |
["AnotherChildishField"] = "more childish" | |
}); | |
var serialized = bson.ToString().Dump(); | |
MongoDB.Bson.Serialization.BsonSerializer.Deserialize<Child1>(serialized).Dump(); |
View index.html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://unpkg.com/systemjs@0.20.19/dist/system.src.js"></script> | |
<script> | |
SystemJS.config({ | |
transpiler: 'plugin-babel', | |
babelOptions:{presets:['babel-preset-react']}, | |
map: { | |
'react': 'https://unpkg.com/react@16.2.0/umd/react.development.js', |
View app.html
This file contains 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
<template> | |
<require from="upload"></require> | |
<main style="padding: 1rem;"> | |
<dl> | |
<dt>Behaves like a vanilla button.</dt> | |
<dd> | |
<upload file.bind="f1">Upload</upload> | |
<span if.bind="f1">${f1.name} selected</span> | |
</dd> | |
View app.html
This file contains 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
<template> | |
<require from="upload"></require> | |
<main style="padding: 1rem;"> | |
<dl> | |
<dt>Behaves like a vanilla button.</dt> | |
<dd> | |
<upload file.bind="f1">Upload</upload> | |
<span if.bind="f1">${f1.name} selected</span> | |
</dd> | |
View Example.cs
This file contains 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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Collections.Immutable; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Reactive; | |
using System.Reactive.Concurrency; | |
using System.Reactive.Disposables; | |
using System.Reactive.Joins; | |
using System.Reactive.Linq; |
View ng-module-example.ts
This file contains 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
export type Constructor = new (...args: any[]) => any; | |
export type Decorator = (target: Constructor) => Constructor; | |
export declare function NgModule<P1, P2, P3, P4, E1, E2, E3, E4>(obj: {providers: [P1, P2, P3, P4], exports: [E1, E2, E3, E4]}): Decorator & typeof obj | |
export declare function NgModule<P1, P2, P3, E1, E2, E3, E4>(obj: {providers: [P1, P2, P3], exports: [E1, E2, E3, E4]}): Decorator & typeof obj | |
export declare function NgModule<P1, P2, E1, E2, E3, E4>(obj: {providers: [P1, P2], exports: [E1, E2, E3, E4]}): Decorator & typeof obj | |
export declare function NgModule<P1, P2, P3, E1, E2, E3>(obj: {providers: [P1, P2, P3], exports: [E1, E2, E3]}): Decorator & typeof obj | |
export declare function NgModule<P1, E1, E2, E3, E4>(obj: {providers: [P1], exports: [E1, E2, E3, E4]}): Decorator & typeof obj | |
export declare function NgModule<P1, P2, E1, E2>(obj: {providers: [P1, P2], exports: [E1, E2]}): Decorator & typeof obj | |
export declare function NgModule<P1, E1, E2>(obj: {providers: [P1], exports: [E1, E2]}): D |