I hereby claim:
- I am mattwiebe on github.
- I am mattwiebe (https://keybase.io/mattwiebe) on keybase.
- I have a public key whose fingerprint is 4E08 5645 1F69 5D0A B0FA 2DF0 31C2 3ED8 EDEF 5823
To claim this, I am signing this object:
<?php | |
/** | |
* Add Support for PodBean Embed URLs in WordPress. | |
* Modified from https://core.trac.wordpress.org/ticket/31068#comment:12 to use newer oEmbed endpoint | |
* | |
* Just paste an episode URL on a line. | |
* @link https://core.trac.wordpress.org/ticket/31068#comment:12 | |
* @see wp_oembed_get() | |
* @param $providers [array] Existing oEmbed Providers | |
* @return [array] Providers with custom additions |
/** | |
* To use: call the function at the point in the load you want to check performance for. | |
* The page will then reload for @var iterations times to provide multiple measures | |
*/ | |
function checkPerf() { | |
var mean; | |
var iterations = 10; | |
var times = localStorage.getItem( 'perf' ) ? JSON.parse( localStorage.getItem( 'perf' ) ) : []; | |
times.push( performance.now() ); | |
localStorage.setItem( 'perf', JSON.stringify( times ) ); |
curl -s https://typekit.com/api/v1/json/families/gkmg | jsonpretty | |
{ | |
"family": { | |
"id": "gkmg", | |
"name": "Droid Sans", | |
"slug": "droid-sans", | |
"web_link": "http://typekit.com/fonts/droid-sans", | |
"browse_info": { | |
"capitals": [ | |
"uppercase-lowercase" |
I hereby claim:
To claim this, I am signing this object:
<?php | |
add_action( 'pre_get_posts', 'mw_post_limiter' ); | |
function mw_post_limiter( $wp_query ) { | |
// only modify for the main query - if we're not there, bail. | |
if ( ! $wp_query->is_main_query() ) | |
return; | |
// category_slug => permission | |
$filtration_pairs = array( |
jQuery( document ).ready( function( $ ) { | |
// Local vars. | |
var $masthead = $( '#masthead' ), | |
timeout = false, | |
$siteInfoClone, | |
$headerImageClone, | |
$socialLinksClone, | |
ajaxRequest = false, | |
$clickedModule; |
<?php | |
function mw_exclude_cat_from_home( $query ) { | |
// this is the category ID(s) you want to exclude. | |
$to_exclude = array( 3 ); | |
if ( $query->is_main_query() && $query->is_home() ) { | |
$query->set( 'category__not_in', $to_exclude ); | |
} | |
} | |
add_action( 'pre_get_posts', 'mw_exclude_cat_from_home' ); |
<?php | |
/* | |
Plugin Name: Disable Twitter Embeds | |
Description: Disables the Twitter embeds introduced in WordPress 3.4 | |
Version: 1.0 | |
Author: Matt Wiebe | |
Author URI: http://mattwiebe.wordpress.com/ | |
*/ |
<?php | |
/* | |
Plugin Name: Options Framework Italics | |
Plugin URI: http://somadesign.ca/ | |
Description: Add dedicated italics checkbox to the Options Framework typography fields. | |
Version: 0.1 | |
Author: Soma Design | |
Author URI: http://somadesign.ca/ | |
License: GPL v2 |
<?php | |
/* | |
Plugin Name: Highlight Scheduled Posts | |
Plugin URI: http://somadesign.ca/ | |
Description: Highlight scheduled posts in the admin | |
Version: 0.1 | |
Author: Matt Wiebe | |
Author URI: http://somadesign.ca/ | |
*/ |