Skip to content

Instantly share code, notes, and snippets.

View fxck's full-sized avatar

Aleš fxck

View GitHub Profile
var gulp = require('gulp');
var livereload = require('gulp-livereload');
var concat = require('gulp-concat');
var fileSystem = require('fs');
var PATHS = {
TS: {
src: 'src/bootstrap.ts',
src: 'src/**/*.ts'
},
import * as Rx from 'rx';
---
import * as Rx from '@reactivex/rxjs';
---
import * as Rx from '../../vendor/angular2/node_modules/@reactivex/rxjs/dist/cjs/Rx';
import { createStore } from 'redux'
/**
* This is a reducer, a pure function with (state, action) => state signature.
* It describes how an action transforms the state into the next state.
*
* The shape of the state is up to you: it can be a primitive, an array, an object,
* or even an Immutable.js data structure. The only important part is that you should
* not mutate the state object, but return a new object if the state changes.
*
System.config({
baseURL: "/",
defaultJSExtensions: false,
transpiler: "typescript",
typescriptOptions: {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"module": "system",
"moduleResolution": "node",
'use strict';
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var assign = require('object-assign');
function isString(str) {
return 'string' === typeof str;
}
import {
Component,
OnInit,
OnDestroy
} from 'angular2/core';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { Subscription } from 'rxjs/Subscription';
import { Store } from '@ngrx/store';
import {
Component,
OnInit,
OnDestroy
} from 'angular2/core';
import { Observable } from 'rxjs/Observable';
import { Store } from '@ngrx/store';
// action creators
@fxck
fxck / config.js
Created May 3, 2016 12:20 — forked from johnlindquist/config.js
angular2 rc.0
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.0'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active May 3, 2016 12:23
angular2 rc.0
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.0'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active November 7, 2016 21:29
ng2-permission + ngrx/router example
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.0'; // lock in the angular package version; do not let it float to current!