Skip to content

Instantly share code, notes, and snippets.

View geekrumper's full-sized avatar

Edouard Coissy geekrumper

View GitHub Profile
@geekrumper
geekrumper / app.component.dart
Created September 5, 2016 09:11
angular2 (dart) quickstart with semantic-ui
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';
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 June 28, 2016 13:42
angular2 service test based on angular2-seed with jasmine
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() {