This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
dropbox | |
http://www.dropbox.com/jobs/challenges | |
greplin | |
http://challenge.greplin.com/ | |
http://www.facebook.com/careers/puzzles.php | |
quora |
Class cls = this.getClass(); | |
ProtectionDomain pDomain = cls.getProtectionDomain(); | |
CodeSource cSource = pDomain.getCodeSource(); | |
URL loc = cSource.getLocation(); // file:/c:/almanac14/examples/ |
find . -depth -name 'CVS' -exec rm -rf '{}' \; -print |
-ctime The time the file's status last changed -- in number of days. | |
find . -ctime 2 | zip ~/5_aug_ccfLogs.zip -@ |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
d=$(echo "$1/1000" | bc); date -d@$d | |
# usange epc.sh 1323350683861 | |
#Thu Dec 8 08:24:43 EST 2011 |
select sys_context( 'userenv', 'current_schema' ) from dual; |
I've been hacking away recently at a JVM framework for doing asynchronous, non-blocking applications using a variation of the venerable Reactor pattern. The core of the framework is currently in Java. I started with Scala then went with Java and am now considering Scala again for the core. What can I say: I'm a grass-is-greener waffler! :) But it understands how to invoke Groovy Closures, Scala anonymous functions, and Clojure functions, so you can use the framework directly without needing wrappers.
I've been continually micro-benchmarking this framework because I feel that the JVM is a better foundation on which to build highly-concurrent, highly-scalable, C100K applications than V8 or Ruby. The problem has been, so far, no good tools exist for JVM developers to leverage the excellent performance and manageability of the JVM. This yet-to-be-publicly-released framework is an effort to give Java, Groovy, Scala, [X JVM language] developers access to an easy-to-use programming model that removes the necessity
I've been hacking away recently at a JVM framework for doing asynchronous, non-blocking applications using a variation of the venerable Reactor pattern. The core of the framework is currently in Java. I started with Scala then went with Java and am now considering Scala again for the core. What can I say: I'm a grass-is-greener waffler! :) But it understands how to invoke Groovy Closures, Scala anonymous functions, and Clojure functions, so you can use the framework directly without needing wrappers.
I've been continually micro-benchmarking this framework because I feel that the JVM is a better foundation on which to build highly-concurrent, highly-scalable, C100K applications than V8 or Ruby. The problem has been, so far, no good tools exist for JVM developers to leverage the excellent performance and manageability of the JVM. This yet-to-be-publicly-released framework is an effort to give Java, Groovy, Scala, [X JVM language] developers access to an easy-to-use programming model that removes the necessity
/*1. The signum of a number is 1 if the number is positive, –1 if it is negative, and | |
0 if it is zero. Write a function that computes this value. | |
*/ | |
def signum(x: Int): Int = if(x>0) 1 else -1 | |
/* | |
4. Write a Scala equivalent for the Java loop | |
for (int i = 10; i >= 0; i--) System.out.println(i); | |
*/ |