This file contains hidden or 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
<?php | |
# Change username, password and database to match your db details | |
# | |
# Set up the database table: | |
# CREATE TABLE IF NOT EXISTS `vhosts` ( | |
# `id` int(11) NOT NULL AUTO_INCREMENT, | |
# `name` varchar(255) DEFAULT NULL, | |
# `aliases` text, | |
# `path` text, |
This file contains hidden or 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
// simple socket wrapper class for objective-c | |
// SocketController.h | |
#import <Foundation/Foundation.h> | |
#import <netinet/in.h> | |
#import <sys/socket.h> | |
#import <arpa/inet.h> | |
@protocol SocketControllerDelegate |
This file contains hidden or 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
// Based on the exceptional work of Arian Stolwijk (https://github.com/arian), https://gist.github.com/9286b06108b1dabae4d9 | |
(function(global){ | |
var defaults = { | |
'setTimeout': global.setTimeout, | |
'clearTimeout': global.clearTimeout, | |
'setInterval': global.setInterval, | |
'clearInterval': global.clearInterval | |
}, |
This file contains hidden or 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
//http://jsfiddle.net/sixtyseconds/HrKHp/ | |
var Proxy = new Class({ | |
'addDelegate': function(object, events) { | |
var self = this; | |
if (!self.delegates) { | |
self.delegates = []; | |
} | |
This file contains hidden or 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
Slick.definePseudo('contains-ci', function(text) { | |
return (this.innerText || this.textContent || '').match(new RegExp(text, 'ig')); | |
}); |
This file contains hidden or 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
/* | |
* x1 | |
* a-----------------------b | |
* r1/ \ | |
* p c | |
* | | | |
* | l g | | |
* | / \ r2/ \ |y1 | |
* | m k h f | | |
* | | | y3| | | |
This file contains hidden or 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
$callbacks = null; | |
function addEvent($type, $callback) | |
{ | |
global $callbacks; | |
if (empty($callbacks)) | |
{ | |
$callbacks = array(); | |
} |
This file contains hidden or 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
alias showall='defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder' | |
alias hideall='defaults write com.apple.finder AppleShowAllFiles FALSE;killall Finder' |
This file contains hidden or 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
find ./ -type d -name '.svn' -print0 | xargs -0 rm -rdf |
This file contains hidden or 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
say -v "Bad News" "dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum dum" |