- iTerm http://iterm.sourceforge.net/
- Alfred http://www.alfredapp.com/
- flux http://stereopsis.com/flux/
- caffeine http://lightheadsw.com/caffeine/
- cloudapp http://getcloudapp.com/
- Sublime Text http://www.sublimetext.com/
- Linkinus http://www.conceitedsoftware.com/linkinus
- Weather HD https://itunes.apple.com/us/app/weather-hd/id411543336?mt=12
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_action( 'init', 'jf_register_my_new_sitemap', 99 ); | |
/** | |
* On init, run the function that will register our new sitemap as well | |
* as the function that will be used to generate the XML. This creates an | |
* action that we can hook into built around the new | |
* sitemap name - 'wp_seo_do_sitemap_my_new_sitemap' | |
*/ | |
function jf_register_my_new_sitemap() { | |
global $wpseo_sitemaps; | |
$wpseo_sitemaps->register_sitemap( 'my_new_sitemap', 'jf_generate_my_new_sitemap' ); |
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
<?php | |
$x = true; | |
$y = false; | |
if ( $x && $y ) | |
echo 'does not echo - false'; | |
if ( $x and $y ) | |
echo 'also does not echo - false'; |
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
/*jslint browser:true */ | |
/*global jQuery:false, swfobject:false */ |
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
all_data = { | |
current_url : '', | |
current_domain : '', | |
page : false, | |
domains : [ | |
{'url':'google.com'}, | |
{'url':'wordpress.org'}, | |
{'url':'wordpress.com'}, | |
{'url':'10up.com'} | |
] |
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
<?php | |
apc_clear_cache(); | |
apc_clear_cache( 'user' ); | |
apc_clear_cache( 'opcode' ); |
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
(function (window, $) { | |
"use strict"; | |
var document = window.document; | |
$(document).ready(function () { | |
$('.open-customer-service').children('a[href="#"]').click(function (e) { | |
e.preventDefault(); // stop the link from taking us back to # | |
$('#customer-service-modal').show(); | |
window.scrollTo(0, 0); | |
}); |
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
fys_predeploy() { | |
rsync -rv --delete --exclude '.git' --exclude '/content/uploads/2011' /srv/www/feedyourskull.com/* ~/staging/feedyourskull.com/ | |
cd ~/staging/feedyourskull.com/ | |
git status | |
} | |
fys_deploy() { | |
sudo rsync -rv --delete --exclude '.git' --exclude 'content/uploads' ~/staging/feedyourskull.com/* /srv/www/feedyourskull.com/ | |
cd /srv/www | |
sudo chown -R www-data:www-data feedyourskull.com/ |
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
<?php | |
/** | |
* If you have a static page set for posts and want to conditionally load | |
* something for it, things seem tricky. | |
* | |
* is_post_type_archive( 'post' ) will return false, because it thinks it's a page | |
* is_home() will return true on the 'blog' page, but false on category archives | |
* is_archive() will return true as expected, but also returns true for other post types | |
* |
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
<!-- Full state name as option value --> | |
<select id="state-select-list" name="state_full_name"> | |
<option value="alabama">Alabama</option> | |
<option value="alaska">Alaska</option> | |
<option value="arizona">Arizona</option> | |
<option value="arkansas">Arkansas</option> | |
<option value="california">California</option> | |
<option value="colorado">Colorado</option> | |
<option value="connecticut">Connecticut</option> | |
<option value="delaware">Delaware</option> |