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> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, width=device-width, target-densitydpi=device-dpi"> | |
<title>Draw Lines</title> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} |
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> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, width=device-width, target-densitydpi=device-dpi"> | |
<title>Ripple</title> | |
<style> | |
canvas { | |
border: 1px solid #9C9898; | |
} | |
</style> |
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> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, width=device-width, target-densitydpi=device-dpi"> | |
<title>Run!</title> | |
<style> | |
canvas { | |
border: 1px solid #9C9898; | |
} | |
</style> |
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
Sub AppendFile(inFilepath, outFilepath) | |
On Error Resume Next | |
ForAppending = 8 | |
Set output = gFileSystem.OpenTextFile(outFilepath, ForAppending, True) | |
Set input = gFileSystem.OpenTextFile(inFilepath) | |
Do Until input.AtEndOfStream = true | |
line = input.ReadLine | |
output.WriteLine line | |
Loop | |
input.Close |
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
# from "The AWK Programming Language" (A.V.Aho, B.W.Kernighan, P.J.Weinberger) | |
# recursive descendent parser | |
def expr | |
e = term | |
while $tokens[$index] == "+" || $tokens[$index] == "-" | |
$index += 1 | |
e = ($tokens[$index - 1] == "+") ? e + term : e - term | |
end | |
return e |
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
package llcalc; | |
import java.util.StringTokenizer; | |
class Expr { | |
Term term; | |
Expr2 expr2; | |
Expr(Term term, Expr2 expr2) { | |
this.term = term; | |
this.expr2 = expr2; |
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
include Java | |
import javax.swing.SwingUtilities | |
import javax.swing.JFrame | |
import javax.swing.JPanel | |
import javax.swing.BorderFactory | |
import java.awt.Color | |
import java.awt.Dimension | |
import java.awt.Graphics |
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> | |
<script type="text/javascript" language="JavaScript" src="js.js"></script> | |
</head> | |
<body onload="onLoad();"> | |
<canvas id="canvas" style="border:1px solid #000000;"></canvas> | |
</body> | |
</html> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Rotate Cube</title> | |
<style> | |
</style> | |
<script type="text/javascript" src="../libs/three.js"></script> | |
<script type="text/javascript" src="rotate-cube.js"></script> | |
<style> | |
body{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="../libs/three.js"></script> | |
<script src="bouncing-ball-3d.js"></script> | |
<style> | |
body{ | |
margin: 0; | |
overflow: hidden; | |
} |