##How to use
- Install Chrome Extension My Style: https://chrome.google.com/webstore/detail/my-style/ljdhjpmbnkbengahefamnhmegbdifhlb/
- Push Ctrl+M in Facebook
- paste this CSS
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:og="http://ogp.me/ns#" | |
xmlns:fb="http://www.facebook.com/2008/fbml"> | |
<head> | |
<title>The Rock (1996)</title> | |
<meta property="og:title" content="The Rock"/> | |
<meta property="og:type" content="movie"/> | |
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/> | |
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> | |
<meta property="og:site_name" content="IMDb"/> |
// Source: http://inparens.tumblr.com/post/1362127815/embedding-github-gists-in-tumblr-posts | |
var gistPrefix = 'https://gist.github.com/', | |
// Cache document.write so that it can be restored once all Gists have been | |
// embedded. | |
cachedWrite = document.write, | |
body = $('body'), | |
// Map each p.gist to an object that contains the paragraph to be replaced | |
// and the Gist's identifier. | |
// Modified the p selector, so you don't have to edit in HTML to add class | |
gists = $('p:contains("https://gist.github.com/")').map(function(n, p) { |
//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. |
<?php | |
/** | |
* @author Marcelius 'mardagz' Dagpin | |
* @name Beautify JSON | |
* @copyright 2012 | |
* @uses / | |
* $json_array = array( | |
* "name" => "mardagz", | |
* "gender" => "lalaki po akow hihihi", | |
* "age" => 40 |
/** | |
* 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; | |
} |
(function( $ ){ | |
$.fn.pluginName = function( ) { | |
return this.each(function() { | |
// maintain chainability | |
}); |
##How to use
$ 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
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; | |
} |