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
| <script type="text/javascript" src="sylvester.js"></script> | |
| <script type="text/javascript" src="glUtils.js"></script> | |
| <script type="text/javascript"> | |
| <!-- | |
| document.addEventListener('DOMContentLoaded', function() { | |
| var webGL = null; | |
| var canvas = document.querySelector('canvas'); | |
| var shaderProgram = null; | |
| var vertexPositionAttribute = null; | |
| var squareVerticesBuffer = null; |
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
| <script type="text/javascript" src="sylvester.js"></script> | |
| <script type="text/javascript" src="glUtils.js"></script> | |
| <script type="text/javascript"> | |
| <!-- | |
| document.addEventListener('DOMContentLoaded', function() { | |
| var webGL = null; | |
| var canvas = document.querySelector('canvas'); | |
| var shaderProgram = null; | |
| var vertexPositionAttribute = null; | |
| var vertexColorAttribute = null; |
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
| if (!window.Matrix4x4) { | |
| window.alert('This class requires "Matrix4x4" class (matrix4x4.js) !!'); | |
| } | |
| function Audio3DVisualizer(canvas, backgroundColors, foregroundColors) { | |
| this.webGL = null; | |
| this.canvas = null; | |
| this.camera = null; | |
| this.sonogram3DVBO = null; |
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.io.*; | |
| import java.net.*; | |
| public final class SocketClient { | |
| private static final String SERVER_HOST = "localhost"; | |
| private static final int SERVER_PORT = 9999; | |
| public static void main(String[] args) { | |
| if (args.length < 1) { | |
| System.err.println("Require at least 1 argument !!"); |
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.io.*; | |
| import java.net.*; | |
| public final class SocketServer { | |
| private static final int LISTEN_PORT = 9999; | |
| private static final int TIMEOUT = 60000; //ms | |
| public static void main(String[] args) { |
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.io.*; | |
| import java.net.*; | |
| public final class ChatClient { | |
| private static final String SERVER_HOST = "localhost"; | |
| private static final String TERMINAL_MESSAGE = "quit"; | |
| private static final int BUFFER_SIZE = 4096; | |
| public static void main(String[] args) { | |
| if (args.length < 1) { |
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.io.*; | |
| import java.net.*; | |
| public final class ChatServer { | |
| private static final int LISTEN_PORT = 9999; | |
| private static final String TERMINAL_MESSAGE = "quit"; | |
| private static final int BUFFER_SIZE = 4096; |
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.concurrent.atomic.*; | |
| public final class AtomicThread { | |
| private static final int NUM_LOAD = 100000; | |
| private AtomicInteger count = new AtomicInteger(); | |
| private static class Worker implements Runnable { | |
| private AtomicThread counter = null; | |
| public Worker(AtomicThread counter) { |
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 final class SynchronizedCounter { | |
| private static final int NUM_LOAD = 10000; | |
| private int count = 0; | |
| private static class Worker implements Runnable { | |
| private SynchronizedCounter counter = null; | |
| public Worker(SynchronizedCounter counter) { | |
| this.counter = counter; | |
| } |
OlderNewer