Skip to content

Instantly share code, notes, and snippets.

View sundararajana's full-sized avatar

Sundararajan Athijegannathan sundararajana

View GitHub Profile
@sundararajana
sundararajana / check_nashorn.js
Last active September 4, 2015 12:53
Function to check if your #javascript code is being run using #nashorn JSR-223 javax.script script engine
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / undefined_call.js
Last active September 4, 2015 12:54
Locating "undefined call" #javascript TypeError with __noSuchMethod__ with #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / unzip.js
Last active September 4, 2015 12:54
Simple unzip tool using #nashorn and #java zip file system API
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / remote_lcd.ino
Last active August 29, 2015 14:19
Simple #Induino R3 #arduino board example to work with LCD and IR remote
// Simple example to read IR remote key and show it on LCD
// using Induino R3 board, LCD shield and Sony IR remote.
// See also:
//
// InduinoX libraries and samples download here:
// http://downloads.simplelabs.co.in/induinox_samples.zip
//
// Interfacing LED shield:
// http://induino.blogspot.in/2012/03/induinox-user-guide-interfacing-with.html
@sundararajana
sundararajana / Blink_interval_serial.ino
Last active August 29, 2015 14:19
blink #arduino script modified to read blink interval from serial port
@sundararajana
sundararajana / datepick.js
Last active September 4, 2015 12:54
#simple sample for #javafx8 date picker with #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / colorpick.js
Last active September 4, 2015 13:29
Simple #javafx ColorPicker example with #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / colorfulcircles.js
Last active September 4, 2015 13:30
#Nashorn port of a #javafx animation sample written in #Java
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / jslogofx.js
Created April 2, 2015 10:39
jslogofx.js - Extending a webapp using #javafx and #nashorn
#!/usr/bin/jjs -fx
/**
* This #nashorn script demonstrates using JavaFX WebView
* and DOM interaction to extend the functionality of a
* pre-written webapp without changing that application code.
* jslogo implements Logo programming language with DOM and JS.
* In this example, we extend "jslogo" webapp to add a feature
* to load logo script file from local file system.
*
@sundararajana
sundararajana / calc.css
Last active October 3, 2015 06:12
calc.css to use with calc.fxml
Moved as a blog entry: https://blogs.oracle.com/sundararajan/entry/using_javafx_fxml_with_nashorn