Skip to content

Instantly share code, notes, and snippets.

@schermannj
schermannj / index.js
Created January 13, 2020 07:25
uee-bench
const Suite = require('benchmark').Suite;
const EventEmitter = require('events');
const UEE = require('unusual-event-emitter');
const suite = new Suite();
const testListener = () => {
};
declare var require: {
<T>(path: string): T;
(paths: string[], callback: (...modules: any[]) => void): void;
ensure: (paths: string[], callback: (require: <T>(path: string) => T) => void) => void;
};
package com.schrmnnj.sample
import rx.Observable
import rx.schedulers.Schedulers
/**
* Created on 08.01.16.
*/
class RxMultiThreadCheck {
@schermannj
schermannj / WebViewCaptureDemo.java
Last active September 15, 2015 10:14 — forked from jewelsea/WebViewCaptureDemo.java
Captures web pages to image files using JavaFX WebView and ImageIO
import javafx.animation.PauseTransition;
import javafx.application.Application;
import javafx.beans.value.*;
import javafx.embed.swing.SwingFXUtils;
import javafx.event.*;
import javafx.geometry.Bounds;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.layout.*;