git config --global alias.plg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=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
<?php | |
/* Removing private and proected prefixes from post titles */ | |
/* uses two filters | |
* protected_title_format and private_title_format | |
*/ | |
function spi_remove_private_protected_from_titles( $format ) { | |
return '%s'; | |
} | |
add_filter( 'protected_title_format', 'spi_remove_private_protected_from_titles' ); |
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 | |
add_action( 'load-post.php', 'spi_post_meta_boxes_setup' ); | |
add_action( 'load-post-new.php', 'spi_post_meta_boxes_setup' ); | |
function spi_post_meta_boxes_setup() { | |
add_action( 'add_meta_boxes', 'spi_add_post_meta_boxes' ); | |
add_action( 'save_post', 'spi_save_post_meta', 10, 2 ); | |
} | |
function spi_add_post_meta_boxes() { |
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
/*iPad Group */ | |
/*iPad both oreintations */ | |
@media only screen | |
and (min-device-width : 768px) | |
and (max-device-width : 1024px) { | |
} | |
/*iPad Landscape */ | |
@media only screen | |
and (min-device-width : 768px) |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
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 | |
remove_action('genesis_before_loop', 'genesis_do_breadcrumbs'); | |
remove_action('genesis_entry_header', 'genesis_entry_header_markup_open', 5); | |
remove_action('genesis_entry_header', 'genesis_do_post_title'); | |
remove_action('genesis_entry_header', 'genesis_post_info', 12); | |
remove_action('genesis_entry_header', 'genesis_entry_header_markup_close', 15); | |
remove_action('genesis_entry_content', 'genesis_do_post_image', 8); |
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 | |
// Uncomment this to test your localization, make sure to enter the right language code. | |
// function test_localization( $locale ) { | |
// return "nl_NL"; | |
// } | |
// add_filter('locale','test_localization'); | |
load_theme_textdomain('studiopress', TEMPLATEPATH.'/languages/'); |
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 | |
/* | |
Plugin Name: Instrument Hooks for WordPress | |
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook. | |
Version: 0.1 | |
Author: Mike Schinkel | |
Author URI: http://mikeschinkel.com | |
*/ | |
if (isset($_GET['instrument']) && $_GET['instrument']=='hooks') { |
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
## Cross-compilation commands | |
CC = arm-none-eabi-gcc | |
LD = arm-none-eabi-gcc | |
AR = arm-none-eabi-ar | |
AS = arm-none-eabi-as | |
OBJCOPY = arm-none-eabi-objcopy | |
OBJDUMP = arm-none-eabi-objdump | |
SIZE = arm-none-eabi-size | |
# our code |
OlderNewer