For Brew driven MAMP with Apache2, PHP 5.3 and MySQL 5.x
Install brew (assuming that you have Xcode installed).
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Install git and bash completion.
[ | |
{ "text": "0️⃣", "name": "0", "keyword": ":0:" }, | |
{ "text": "1️⃣", "name": "1", "keyword": ":1:" }, | |
{ "text": "🔟", "name": "10", "keyword": ":10:" }, | |
{ "text": "💯", "name": "100", "keyword": ":100:" }, | |
{ "text": "🥇", "name": "1st Place Medal", "keyword": ":1st-place-medal:" }, | |
{ "text": "2️⃣", "name": "2", "keyword": ":2:" }, | |
{ "text": "🥈", "name": "2nd Place Medal", "keyword": "2nd-place-medal:" }, | |
{ "text": "3️⃣", "name": "3", "keyword": ":3:" }, | |
{ "text": "🥉", "name": "3rd Place Medal", "keyword": ":3rd-place-medal:" }, |
$ git config --global core.excludesfile ~/.gitignore | |
$ echo .DS_Store >> ~/.gitignore |
function isScrolledIntoView(elem) { | |
var $win = $(window), | |
$elem = $(elem), | |
docViewTop = $win.scrollTop(), | |
docViewBottom = docViewTop + $win.height(), | |
elemTop = $elem.offset().top, | |
elemBottom = elemTop + $elem.height(); | |
return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom) && (elemBottom <= docViewBottom) && (elemTop >= docViewTop)); | |
} |
global $wpdb; | |
$query = "SELECT meta_value, meta_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attachment_metadata'"; | |
$result = $wpdb->get_results($query); | |
foreach ($result as $item) { | |
$meta = unserialize($item->meta_value); | |
unset($meta['sizes']); | |
$wpdb->update( 'wp_vira_postmeta', array('meta_value' => serialize($meta)), array('meta_id' => $item->meta_id) ); | |
} |
I hereby claim:
To claim this, I am signing this object:
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
position: relative; |
// Rounds all the corners of a box | |
@mixin vector-bg-with-fallback($name) { | |
background-image: image-url('#{$name}.png'); | |
background-image: none, image-url('#{$name}.svg'); | |
} | |
@mixin border-radius($radius, $clip: padding-box) | |
-webkit-border-radius: $radius | |
-moz-border-radius: $radius | |
-o-border-radius: $radius |
<?php | |
/** | |
* Display point award report. | |
* | |
* Generates a list of awarded points. | |
* | |
* @return array $content | |
*/ | |
function game_report_page_points() { |
$ mate /etc/php.ini | |
Add: error_log = /Users/USERNAME/Library/Logs/php.log | |
$ sudo chmod 755 ~/Library/ && sudo chmod 755 ~/Library/Logs && sudo touch ~/Library/Logs/php.log && sudo chmod 777 ~/Library/Logs/php.log |