$ brew update
$ brew install jpeg libpng
$ phpbrew install php-5.4.19 +default+dbs+apxs2=/usr/sbin/apxs +mcrypt+openssl -- --with-libdir=Cellar --with-gd=shared --enable-gd-natf --with-jpeg-dir=/usr/local/Cellar --with-png-dir=/usr/local/Cellar
{ | |
// http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true | |
} |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; | |
} |
$ brew update
$ brew install jpeg libpng
$ phpbrew install php-5.4.19 +default+dbs+apxs2=/usr/sbin/apxs +mcrypt+openssl -- --with-libdir=Cellar --with-gd=shared --enable-gd-natf --with-jpeg-dir=/usr/local/Cellar --with-png-dir=/usr/local/Cellar
##How to use
(function( $ ){ | |
$.fn.pluginName = function( ) { | |
return this.each(function() { | |
// maintain chainability | |
}); |
/** | |
* iOS 6 style switch checkboxes | |
* by Lea Verou http://lea.verou.me | |
*/ | |
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */ | |
position: absolute; | |
opacity: 0; | |
} |
<?php | |
/** | |
* @author Marcelius 'mardagz' Dagpin | |
* @name Beautify JSON | |
* @copyright 2012 | |
* @uses / | |
* $json_array = array( | |
* "name" => "mardagz", | |
* "gender" => "lalaki po akow hihihi", | |
* "age" => 40 |
//Gruber wrote this regex for matching URLs, but it took a small amount of massage to use it in JavaScript. So here. | |
//Sauce: http://daringfireball.net/2010/07/improved_regex_for_matching_urls | |
var p = /\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i; | |
p.exec('party fun www.twitter.com yay') //winning. |