Skip to content

Instantly share code, notes, and snippets.

View ewinslow's full-sized avatar

Evan Winslow ewinslow

  • Google
  • Westminster, CA
View GitHub Profile
#### FIRST ln -s ~/[numeric-www-folder] ~/httpdocs
# watchr
gem install watchr
# phpunit
mkdir ~/bin/
echo "bin" >> .gitignore
wget http://pear.phpunit.de/get/phpunit.phar -P ~/bin/
chmod +x ~/bin/phpunit.phar
@ryanflorence
ryanflorence / universal-module.js
Created September 6, 2011 18:10
Universal JavaScript Module, supports AMD (RequireJS), Node.js, and the browser.
(function (name, definition){
if (typeof define === 'function'){ // AMD
define(definition);
} else if (typeof module !== 'undefined' && module.exports) { // Node.js
module.exports = definition();
} else { // Browser
var theModule = definition(), global = this, old = global[name];
theModule.noConflict = function () {
global[name] = old;
return theModule;