Skip to content

Instantly share code, notes, and snippets.

View coudy's full-sized avatar
💼

Michal Čudrnák coudy

💼
View GitHub Profile
package eu.coudy.fx8;
import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.Scene;
import javafx.scene.layout.Region;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
@coudy
coudy / OctaneBenchmarkNashorn.java
Created April 3, 2014 16:43
Runs Google's Octane Benchmark using JDK8's Nashorn engine
package eu.coudy.nashorn;
import jdk.nashorn.api.scripting.NashornScriptEngine;
import javax.script.CompiledScript;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;