Skip to content

Instantly share code, notes, and snippets.

@mafo5
mafo5 / proxy.sh
Created January 9, 2012 08:54 — forked from StephanU/work.sh
npm/proxy skript
#!/bin/sh
proxy=proxy.clust:3128
export http_proxy=http://$proxy
export https_proxy=http://$proxy
export ftp_proxy=http://$proxy
export socks_proxy=http://$proxy
export no_proxy="127.0.0.1,localhost"
@mafo5
mafo5 / app.component.spec.ts
Last active August 10, 2016 11:18
Testing router functionality of a component
/* tslint:disable:no-unused-variable */
import { addProviders, async, inject, getTestInjector } from '@angular/core/testing';
import { provideRouter } from '@angular/router';
import { createPlatform, PlatformRef, EventEmitter } from '@angular/core';
import { LocationStrategy } from '@angular/common';
import { SpyLocation } from '@angular/common/testing';
import { AppComponent } from './app.component';
import { ObservableWrapper } from '@angular/core/src/facade/async';