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> | |
<title>Canvas Color</title> | |
<script type="text/javascript"> | |
function Box(id, color) { | |
this.id = id; | |
this.color = color; | |
} | |
var boxes = []; | |
var doneBoxes = []; |
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
(function() { | |
var queue = [], | |
paused = false, | |
results; | |
this.test = function(name, fn) { | |
queue.push(function() { | |
results = document.getElementById("results"); | |
results = assert(true, name).appendChild( | |
document.createElement("ul")); |
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
webserver: webserver.c libuv/uv.a http-parser/http_parser.o | |
gcc -I libuv/include \ | |
-lrt -lm -lpthread -o \ | |
webserver webserver.c \ | |
libuv/uv.a http-parser/http_parser.o | |
libuv/uv.a: | |
$(MAKE) -C libuv | |
http-parser/http_parser.o: |
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> | |
<title>Canvas Color</title> | |
<script type="text/javascript"> | |
function Box(id, color) { | |
this.id = id; | |
this.color = color; | |
} | |
var boxes = []; | |
var doneBoxes = []; |
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
(function() { | |
'use strict'; | |
var todos = [], | |
stat = {}, | |
ENTER_KEY = 13; | |
window.addEventListener( 'load', windowLoadHandler, false ); | |
function Todo( title, completed ) { |