Skip to content

Instantly share code, notes, and snippets.

@pelenthium
pelenthium / Launcher.java
Created March 16, 2015 15:59
Sample JavaFX application for use Nashorn JavaScript Engine in jdk8
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import jdk.nashorn.api.scripting.NashornScriptEngine;
import jdk.nashorn.api.scripting.NashornScriptEngineFactory;
@pelenthium
pelenthium / memory_use.sh
Created July 25, 2017 15:12
Memory used by proccess
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |cut -d "" -f2 | cut -d "-" -f1
> Task :dependencies
------------------------------------------------------------
Root project
------------------------------------------------------------
annotationProcessor - Annotation processors and their dependencies for source set 'main'.
+--- org.projectlombok:lombok:1.18.2
+--- io.micronaut:micronaut-inject-java -> 1.0.0.RC3