Skip to content

Instantly share code, notes, and snippets.

@Rcomian
Rcomian / whiteboard.js
Created October 30, 2012 13:37
Basic whiteboard class for demonstrations
function WhiteBoard(canvas, onLine) {
// Drawing
var ctx = canvas[0].getContext('2d');
var self = this;
this.randomColor = function () {
var col = [
Math.floor(Math.random() * 256),
Math.floor(Math.random() * 256),
Math.floor(Math.random() * 256)
@Rcomian
Rcomian / gist:3705356
Created September 12, 2012 08:53
JSLint for wsh - works from msbuild
// jslint.js
// 2012-03-29
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is