This file contains hidden or 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
watch('./(.*).js') { |m| run_tests } | |
def run_tests | |
output = `jasmine-node spec/` | |
report output rescue nil | |
end | |
def report(output) | |
tests = /[0-9]+ tests?/.match(output).to_s; | |
failures = /[0-9]+ failures?/.match(output).to_s; |
This file contains hidden or 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
<html> | |
<head></head> | |
<body> | |
<input name="myButton" type="button" value="button 1"> | |
<input name="myButton" type="button" value="button 2"> | |
<input name="myButton" type="button" value="button 3"> | |
<script type="text/javascript"> | |
var buttons = document.getElementsByName("myButton"); | |
This file contains hidden or 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
@Override | |
public boolean equals(final Object obj) { | |
if (obj == null) { | |
return false; | |
} | |
if (obj == this) { | |
return true; | |
} | |
if (obj.getClass() != getClass()) { | |
return false; |
This file contains hidden or 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 static void main(String... args){ | |
int i = 0; | |
for (i = 0; i < 10; i++) { | |
System.out.println("i=" + i); | |
} | |
System.out.println("final i=" + i); | |
} |
NewerOlder