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
<html> | |
<head> | |
<script src="lib/audiojs/audio.min.js" type="text/javascript"></script> | |
<script> | |
audiojs.events.ready(function() { | |
var as = audiojs.createAll(); | |
}); | |
</script> | |
</head> | |
<body> |
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
import static org.junit.Assert.assertEquals; | |
import java.io.ByteArrayOutputStream; | |
import java.io.PrintStream; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
public class SystemOutTest { |
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
# Java class files | |
*.class | |
# generated files | |
bin/ | |
gen/ | |
# Local configuration file | |
local.properties |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Drag n drop test</title> | |
<style type="text/css"> | |
body {text-align: center; padding-top: 100px;} | |
em {position: absolute; bottom: 0; right: 0} | |
canvas { border: 1px solid black; } | |
</style> |
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
// warning: this uses only core Java tools and can unzip .zip files only | |
// warning: you should care about exceptions. Seriously. | |
private static boolean downloadAndUnzip(String downloadFileUrl, | |
String outputFile) throws MalformedURLException, IOException, | |
URISyntaxException { | |
byte[] buffer = new byte[1024]; | |
ZipInputStream zis = new ZipInputStream(new URI(downloadFileUrl) |