Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Canvas Color</title>
<script type="text/javascript">
function Box(id, color) {
this.id = id;
this.color = color;
}
var boxes = [];
var doneBoxes = [];
@minrenmtv
minrenmtv / asyncTest.js
Last active December 19, 2015 07:29
simple async test
(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"));
@minrenmtv
minrenmtv / Makefile
Last active December 18, 2015 16:59 — forked from utaal/Makefile
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:
@minrenmtv
minrenmtv / color.html
Created July 13, 2012 01:06
color war
<html>
<head>
<title>Canvas Color</title>
<script type="text/javascript">
function Box(id, color) {
this.id = id;
this.color = color;
}
var boxes = [];
var doneBoxes = [];
@minrenmtv
minrenmtv / todo_app.js
Created July 8, 2012 15:56
Vanilla Todo
(function() {
'use strict';
var todos = [],
stat = {},
ENTER_KEY = 13;
window.addEventListener( 'load', windowLoadHandler, false );
function Todo( title, completed ) {