This file contains 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
/** | |
* The pseudo-element 'content' property doesnt accept normal (») style | |
* HTML entities. These variables below easy the pain of looking up the HEX codes... | |
* | |
* Referenced from http://www.danshort.com/HTMLentities/ | |
* | |
* TODO: Add all the other entities? Worth it? Some day? Maybe? | |
*/ | |
// Punctuation |
This file contains 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
require_once("../wp-config.php"); | |
$wp->init(); $wp->parse_request(); $wp->query_posts(); | |
$wp->register_globals(); $wp->send_headers(); |
This file contains 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
sudo which brew && sudo chown -R $(whoami):admin /usr/local && brew update && brew upgrade --all && brew cleanup && sudo composer self-update && sudo gem update --system -n /usr/local/bin && sudo gem update -n /usr/local/bin && sudo npm update -g |
This file contains 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
// @via https://gist.github.com/hagenburger/379601 | |
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { |
This file contains 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
/* | |
imagesQueue.js FULL SOURCE | |
A simple, cross-browser, *parallel* images loader object. | |
Check http://labs.lieldulev.com/imagesQueue/ for more details. | |
*/ | |
imagesQ={ | |
onComplete: function(){} // Fires when all finished loading | |
,onLoaded: function(){} // Fires when an image finishes loading | |
,onErrored: function(){} // Fires when an image fails to load | |
,current: null // Last loaded image (Image Object) |
This file contains 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
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |
This file contains 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
/** | |
* drop-shadow filter vs box-shadow | |
*/ | |
html { | |
background: url('http://subtlepatterns.com/patterns/purty_wood.png') | |
} | |
.speech-bubble { | |
position: relative; |
This file contains 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
// https://github.com/rilwis/meta-box/issues/135 | |
`date( 'another format', strtotime( $meta ) );` | |
This file contains 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
#!/bin/bash | |
# wrapper script for post-recieve | |
enabled_hooks="$(git config hooks.enabled)" | |
hooks_path="/usr/local/share/git/hooks/" | |
if [ -n "${enabled_hooks}" ] ; then | |
# change separate to comma | |
OLDIFS="$IFS" | |
IFS="," |
This file contains 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
add_filter( 'body_class', 'gk_add_body_class' ); | |
function gk_add_body_class( $classes ) { | |
$classes[] = 'custom-class'; | |
$classes[] = $_GET['bg'] == 1 ? 'bg1': ''; | |
$classes[] = $_GET['bg'] == 2 ? 'bg2': ''; | |
$classes[] = $_GET['bg'] == 3 ? 'bg3': ''; | |
$classes[] = $_GET['bg'] == 4 ? 'bg4': ''; | |
return $classes; | |
} |