Sean McCullough banksean

View λ.html
1 2 3 4 5 6 7 8 9 10
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" />
<title>
λ in JavaScript
</title>
<script type='text/javascript'>
 
Array.prototype.forEach = function(λ) {
for (var i = 0; i < this.length; i++) {
View perlin-noise-classical.js
1 2 3 4 5 6 7 8 9 10
// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough banksean@gmail.com
 
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
View mersenne-twister.js
1 2 3 4 5 6 7 8 9 10
 
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
View chat.html
1 2 3 4 5 6 7 8 9
<!doctype html>
<html>
<head>
<title>NodeJS Comet Chat Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type='text/javascript'>
$(function() {
// This only works in modern browsers :)
var webSocket = new WebSocket('ws://localhost:8080/chat');
Something went wrong with that request. Please try again.