Skip to content

Instantly share code, notes, and snippets.

Avatar

Edouard Coissy geekrumper

  • Bern, Switzerland
View GitHub Profile
@geekrumper
geekrumper / app.component.dart
Created Sep 5, 2016
angular2 (dart) quickstart with semantic-ui
View app.component.dart
import 'package:angular2/core.dart';
import 'dart:js' as js;
@Component(
selector: 'my-app',
templateUrl: 'app_component.html')
class AppComponent {
@HostBinding('class') String css = 'ui main container';
View ngrx_seed.config.ts
import { join } from 'path';
import { argv } from 'yargs';
import { Environments, InjectableDependency } from './seed.config.interfaces';
/**
* The enumeration of available environments.
* @type {Environments}
*/
export const ENVIRONMENTS: Environments = {
@geekrumper
geekrumper / data.get.all.spec.ts
Created Jun 28, 2016
angular2 service test based on angular2-seed with jasmine
View data.get.all.spec.ts
import {provide, ReflectiveInjector} from '@angular/core';
import {BaseRequestOptions, ConnectionBackend, Http, HTTP_PROVIDERS, Response, ResponseOptions} from '@angular/http';
import {MockBackend} from '@angular/http/testing';
import {Observable} from 'rxjs/Observable';
//imaginary service and model
import {DataService} from '../index';
import {Data} from '../model/index';
export function main() {