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
wp-admin/js/about.js | |
wp-admin/js/accordion.js | |
wp-admin/js/color-picker.js | |
wp-admin/js/comment.js | |
wp-admin/js/common.js | |
wp-admin/js/custom-background.js | |
wp-admin/js/custom-header.js | |
wp-admin/js/customize-controls.js | |
wp-admin/js/dashboard.js | |
wp-admin/js/edit-comments.js |
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
<html> | |
<head> | |
<title>Post Title</title> | |
</head> | |
<body> | |
<header> | |
<esi:include src="http://my-url.com/rest-api/get/name/user-a" max-age="0" /> | |
</header> | |
<article> | |
<h1>Post Title</h1> |
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 defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
// by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
// Quartz Debug says. Who knows, maybe it's lying? | |
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |
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
/** | |
* Wrapper for adding/updating an option without autoloading it. | |
* | |
* @author tollmanz | |
* | |
* @uses get_option | |
* @uses add_option | |
* @uses update_option | |
* | |
* @param string $key Option name. |
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
# -s assumes normal branches/tags/trunk structure | |
git svn clone -s http://svn.my.little.repo.com | |
# Add the git repo | |
git remote add git-repo git@github.com:tollmanz/my-little-repo.git | |
# Pull in the git remote | |
git fetch git-repo | |
# Create new tracking branch |
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 | |
function get_object( $force = false ) { | |
$cache_key = 'my-object-' . get_incrementor(); | |
$object = wp_cache_get( $cache_key ); | |
if ( false === $object ) { | |
$object = regenerate_cached_object(); | |
wp_cache_set( $cache_key, $object, 3600 ); | |
} |
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 | |
function zt_get_top_posts( $args, $force = false ) { | |
// Define our cache key | |
$cache_key = 'zt-top-posts'; | |
// Attempt to grab data from cache | |
$top_posts = wp_cache_get( $cache_key ); | |
// If not found in cache or forced, regenerate | |
if ( false === $top_posts || true === $force ) { |
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 | |
function zt_get_top_posts( $args, $force = false ) { | |
// Define the cache key | |
$identifier = md5( maybe_serialize( $args ) ); | |
$cache_key = 'top-posts-' . $identifier; | |
// Define the cache group | |
$cache_group = 'zt-ga-data-' . zt_get_incrementor(); | |
// Attempt to get data from cache |
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 | |
function zt_get_top_posts( $force = false ) { | |
// Define our cache key | |
$cache_key = 'zt-top-posts'; | |
// Attempt to grab data from cache | |
$top_posts = wp_cache_get( $cache_key ); | |
// If not found in cache or forced, regenerate | |
if ( false === $top_posts || true === $force ) { |
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 | |
function zt_get_top_posts() { | |
// Define the cache key | |
$cache_key = 'zt-top-posts'; | |
// Attempt to get data from cache | |
$top_posts = wp_cache_get( $cache_key ); | |
// If not found in cache regenerate | |
if ( false === $top_posts ) { |