View employee_salaries.ts
// https://vsavkin.com/functional-typescript-316f0e003dc6
class Employee {
constructor(public name: string, public salary: number) {}
}
class Department {
constructor(public employees: Employee[]) {}
works(employee: Employee): boolean {
View config.js
SystemJS.config({
transpiler: "typescript",
typescriptOptions: {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
map: {
"rxjs": "https://npmcdn.com/rxjs",
"angular2": "https://npmcdn.com/angular2",
"@ngrx": "https://npmcdn.com/@ngrx",
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RxJSCraft</title>
<script src="https://npmcdn.com/systemjs@0.19.24/dist/system.js"></script>
<script src="https://npmcdn.com/typescript@1.8.9/lib/typescript.js"></script>
</head>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RxJSCraft</title>
<script src="https://npmcdn.com/systemjs@0.19.24/dist/system.js"></script>
<script src="https://npmcdn.com/typescript@1.8.9/lib/typescript.js"></script>
<script src="https://npmcdn.com/rxjs@5.0.0-beta.4/bundles/Rx.js"></script>
<style>
View config.js
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src",
View config.js
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src",
View README.md

Angular2 Starter Gist Run

View Letter to India Embassy in Nepal - Disruption of Medical Supplies.MD

To: picwing@eoiktm.org - Press Information Wing, India Embassy

To: ecwing@eoiktm.org - Economic Cooperation Wing, India Embassy

To: economic@eoiktm.org - Economic Wing, India Embassy

Namaste,

I am concerned about the disruption of essential medical supplies to Nepal's medical community. Can you tell me what India is doing to coordinate with the Nepal government to ensure that medicine and other equipment will reach the people whose lives depend on it?

View angular2.jspm.md

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate

View data_transformation_station_2.js
// 1st Station, 2nd Station
function transform(unit, task, task_output, extras)
if (task.meta.status == 'skipped') return;
//local storage system
var symbols = extras.ambiguous_currency_symbols;
var receipt_date = task_output.receipt_date;
var currency = task_output.currency;