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
... | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> |
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
import java.util.*; | |
class ForBug { | |
public static void main( String[] a ) { | |
int m = Integer.MAX_VALUE; | |
for ( int n = 1; n <= m; n++ ) { | |
System.out.println( "Step " + n ); | |
} | |
} |
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
import java.util.*; | |
import java.text.*; | |
class CrashThread extends Thread { | |
public static final long BYTES_IN_MEGABYTE = 1024 * 1024; | |
public static void main(String[] a) throws Throwable { | |
try { | |
System.out.println("Maximum possible heap size is " + Runtime.getRuntime().max Memory() / BYTES_IN_MEGABYTE); | |
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 class ChallengeLoader extends EventDispatcher { | |
public function loadWordSound( wordSoundUrl:String, onSuccess:Function, | |
onError:Function ):void { | |
var loadingProcessData:LoadingProcessData = new LoadingProcessData( onSuccess, | |
onError ); | |
var loadingEventProcessor:Function = FunctionUtils.curry( | |
onCompleteResourceLoad, loadingProcessData ); | |
var wordSound:Sound = new Sound(); |
NewerOlder