Skip to content

Instantly share code, notes, and snippets.

View Namek's full-sized avatar
💻

Kamil Dąbrowski Namek

💻
View GitHub Profile
@Namek
Namek / JfxTestRunner.java
Created May 24, 2016 20:21 — forked from bugabinga/JfxTestRunner.java
This runner can be used to run JUnit-Tests on the JavaFx-Thread.
/**
* © 2015 isp-insoft all rights reserved.
*/
package com.isp.lpt;
import java.util.concurrent.CountDownLatch;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;
@Namek
Namek / PersistentRouterOutlet.ts
Last active January 25, 2016 09:53 — forked from waeljammal/PersistentRouterOutlet.ts
Angular 2 Persistent Router
import * as hookMod from 'angular2/src/router/lifecycle_annotations';
import * as routerMod from 'angular2/src/router/router';
import {isBlank, isPresent, Json} from 'angular2/src/facade/lang';
import {StringMapWrapper} from 'angular2/src/facade/collection';
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {BaseException} from 'angular2/src/facade/exceptions';
import {
ElementRef, DynamicComponentLoader, Directive, Injector, provide, ComponentRef, Attribute
} from 'angular2/core';
import {