This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface DBConnection { | |
/** | |
* Commits a student to this connection. | |
* | |
* @param student the student to be committed. | |
* @return <code>0</code> if committed successfully, <code>-1</code> otherwise. | |
*/ | |
int commitStudent(Student student); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((~~(Math.random()*10))%2 ? "Yes" :"No don't") + " do it!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fibonacci(n) { | |
return Array.apply(0, new Array(n)).reduce(function(seq, current, index) { | |
return seq.concat((index < 2) ? index : seq[index-1] + seq[index-2]); | |
}, []); | |
} |
NewerOlder