Skip to content

Instantly share code, notes, and snippets.

View sundararajana's full-sized avatar

Sundararajan Athijegannathan sundararajana

View GitHub Profile
@sundararajana
sundararajana / calc.xml
Last active October 3, 2015 06:12
Simple calculator with #javafx FXML and #nashorn
Moved as a blog entry: https://blogs.oracle.com/sundararajan/entry/using_javafx_fxml_with_nashorn
@sundararajana
sundararajana / clickcounter.fxml
Last active September 4, 2015 13:31
Self contained #javafx FXML file that can be run with fxmlrunner.js
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / fxmlrunner.js
Last active September 4, 2015 13:32
Simple #javafx FXML runner #nashorn script
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / fxml_example.js
Last active September 4, 2015 13:32
#nashorn example using FXML with #javafx
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / nerdamer_fun.txt
Last active September 22, 2015 10:53
Playing with Nerdamer (symbolic math expression evaluator for JS) using #nashorn
Moved this as a blog entry here -> https://blogs.oracle.com/sundararajan/entry/using_a_symbolic_math_js
@sundararajana
sundararajana / nashornastviewer.js
Last active September 4, 2015 13:33
Viewing #ECMAScript AST as a Tree using #Nashorn parser API with #JavaFX
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / MyInterface.java
Created March 5, 2015 03:59
default and static methods in interfaces #java8 and private interface methods in #java9
// jdk8 allows default methods and static methods in interfaces
// see also http://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html
// jdk9 allows private methods in interfaces
// see also http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-March/032055.html
import java.util.concurrent.Callable;
public interface MyRunnable extends Runnable, Callable {
default public void run() {
func();
@sundararajana
sundararajana / xmlviewer.js
Last active September 4, 2015 13:33
Viewing XML as a Tree with #javafx and #nashorn - another #cricket example ;)
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / cricket.js
Last active September 4, 2015 13:34
Print live #cricket score via rss feed from cricinfo using #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / showenv.js
Last active September 4, 2015 13:34
View environment entries as a HTML table using #nashorn and #javafx WebView
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.