Skip to content

Instantly share code, notes, and snippets.

View sundararajana's full-sized avatar

Sundararajan Athijegannathan sundararajana

View GitHub Profile
??????????????+++++++++++++++++++++++++++++++============================~~~~~~~
??????????????+?+++++++++++++++++++++I88888OOOZ?+========================~~~~~~~
???????????????????+++++++++++++++78888888888OOOOZ7+===================~=~~~=~~~
????????????????++++++++++++++++O88DDD8D888888O888OZ7====================~~~~~~~
??????????????????++++++++++++IO8D88D8DDD88OOZZ$ZO8OOZ+===================~~~~~~
???????????????????++++++++++78DDDDDDDD8OZ$$$$$$7III$OI+=================~~~~~~~
???????????????????++++++++++88DDDDD88OOZZ$$$$$7I????$Z7=================~~~~~~~
??????????????????????++++++O8DDDD8888OZZZZ$$$$II?????O$?================~~~~~~~
??????????????????????+++++?8DDD888888OOOZZ$$$$77I????7Z7==============~=~~~~~~~
????????????????????????+??I8DD888888OOZZZZZZ$$$7III??IZ$+================~~~~~~
@sundararajana
sundararajana / java_completion.js
Last active September 4, 2015 13:27
Simple #java9 #jshell API example using #nashorn scripting
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / classes.js
Last active September 4, 2015 12:26
#nashorn script that prints all classes in a given package and its subpackages using #java tools API
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / javaconstructorbind.js
Last active September 4, 2015 12:26
Binding arguments to a #java constructor in #nashorn #javascript engine
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / javabind.js
Last active September 4, 2015 12:27
bind arguments to a #java method in #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / mothers_day.js
Last active September 4, 2015 12:28
Compute Mother's day of the given year using #java time API from #nashorn script
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / this_for_eval.js
Last active September 4, 2015 12:43
How to pass arbitrary "this" for an "eval" call? #ecmascript #javascript
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / datetime.js
Last active September 4, 2015 12:46
Converting between #javascript Date and #java8 LocalDateTime with #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / secondssince.js
Last active September 4, 2015 12:52
Number of seconds elapsed since the specified Instance #nashorn #javascript #java
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.
@sundararajana
sundararajana / importstatic.js
Last active September 4, 2015 12:53
#java style "import static ClassName.*" for #nashorn
Moved to openjdk nashorn project.
Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn.