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(); |
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/[email protected]/dist/system.src.js"></script> | |
<script> | |
SystemJS.config({ | |
transpiler: 'plugin-babel', | |
babelOptions:{presets:['babel-preset-react']}, | |
map: { | |
'react': 'https://unpkg.com/[email protected]/umd/react.development.js', |
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> | |
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> | |
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; |
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 |