This file contains hidden or 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: Category Custom Fields | |
Author: scribu | |
*/ | |
class Category_Custom_Fields { | |
function init() { |
This file contains hidden or 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 | |
/** | |
* Returns an array containing the ASCII codes of a string (useful for decomposition) | |
* Example: print_r(get_ascii_array('ș')) | |
* | |
* @param string $str | |
* @return array | |
*/ | |
function get_ascii_array($str) { |
This file contains hidden or 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 | |
/* | |
Adds Post Counts by Post Type per User in the User List withing WordPress' Admin console (URL path => /wp-admin/users.php) | |
Written for: http://wordpress.stackexchange.com/questions/3233/showing-users-post-counts-by-custom-post-type-in-the-admins-user-list | |
By: Mike Schinkel (http://mikeschinkel.com) | |
Date: 24 October 2010 | |
*/ |
This file contains hidden or 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
/* -------------------------------------------------------------- | |
screen.css | |
* Add varying amounts of padding or margin to elements. | |
* Naming convention: | |
- First letter denotes padding (p) or margin (m). | |
- Second letter denotes where spacing is applied: | |
a - all sides | |
t - top | |
r - right |
This file contains hidden or 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 | |
// @link http://books.google.com/books?id=fvA7zLEFWZgC&pg=PA61&lpg=PA61#v=onepage&q&f=false | |
function nice_labels( $min, $max, $ticks = 5 ) { | |
$range = nice_number( $max, false ); | |
$d = nice_number( $range / ( $ticks - 1 ) ); | |
$graphmin = floor( $min / $d ) * $d; | |
$graphmax = ceil( $max / $d ) * $d; | |
$nfrac = max( array( - floor( log( $d, 10 ) ), 0 ) ); |
This file contains hidden or 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
var assert = require('assert'), | |
toBytes = require('./utf8.js').toBytes, | |
toUTF8Bytes = require('./utf8.js').toUTF8Bytes, | |
fromUTF8Bytes = require('./utf8.js').fromUTF8Bytes; | |
assert.deepEqual(toBytes(0x0), [0]); | |
assert.deepEqual(toBytes(0xff), [0xff]); | |
assert.deepEqual(toBytes(0x01ff), [0x01, 0xff]); | |
assert.deepEqual(toBytes(0xffff), [0xff, 0xff]); |
This file contains hidden or 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 | |
////////////////// | |
// Screens | |
////////////////// | |
// Posts | |
foreach ( array( | |
'posts', 'pages', 'recipe_posts', | |
'edit-post', 'edit-page', 'edit-recipe', |
This file contains hidden or 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: iFrame Your WP | |
Description: Allow people to embed your latest posts in an iFrame | |
Author: Christopher Davis | |
Author URI: http://www.christopherguitar.me | |
License: GPL2 | |
*/ | |
register_activation_hook( __FILE__ , 'wpse32725_activation' ); |
This file contains hidden or 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 | |
/** | |
* Parse Opera's bookmarks.adr file. | |
*/ | |
class Opera_Bookmarks_Parser { | |
/** @var string path to bookmarks.adr */ | |
public $adr; |
OlderNewer