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
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
mkdir ~/src | |
cd ~/src | |
# download the Node source, compile and install it | |
git clone https://github.com/joyent/node.git | |
cd node |
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
/* | |
* Create an element on page that outputs info you pass it. I use it for IE6 testing | |
* Returns a unique element, and also overwrites console.log. Optionally you can pass in an id | |
* of an element for which to insert the debug element instead of document body. | |
* | |
* Usage: | |
* var debug = createDebugElement(); | |
* debug.innerHTML = 'show my message'; | |
* | |
* console.log('show my message'); |
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
// faster dequeue | |
// uses and array as prototype so all array methods are available. | |
// "unshift" has method overridden to not re-size the array | |
// | |
// var queue = new Queue(); | |
function Queue() { | |
this._i = 0; | |
} | |
Queue.prototype = []; |
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
/* EventManager, v1.0.1 | |
* | |
* Copyright (c) 2009, Howard Rauscher | |
* Licensed under the MIT License | |
*/ | |
(function() { | |
function EventManager() { | |
this._listeners = {}; |
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
/* fontAvailable jQuery Plugin, v1.1 | |
* | |
* Copyright (c) 2009, Howard Rauscher | |
* Licensed under the MIT License | |
*/ | |
(function($) { | |
var element; | |
$.fontAvailable = function(fontName) { |
NewerOlder