Skip to content

Instantly share code, notes, and snippets.

View TheDeveloper's full-sized avatar

Geoff Wagstaff TheDeveloper

View GitHub Profile
@TheDeveloper
TheDeveloper / requireDir.js
Created July 4, 2012 14:59 — forked from ThisIsMissEm/requireDir.js
Node.js require directory
var fs = require('fs');
var Path = require('path');
function requireDir(dir){
var modules = {};
fs.readdirSync(dir).map(function(name){
return Path.join(dir, name);
}).filter(function(path){
return fs.statSync(path).isFile();
require 'formula'
def mysql_installed?
`which mysql_config`.length > 0
end
class Php <Formula
url 'http://www.php.net/get/php-5.3.3.tar.gz/from/this/mirror'
homepage 'http://php.net/'
md5 '5adf1a537895c2ec933fddd48e78d8a2'