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; |
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 | |
r_cache_scripts(); | |
function r_cache_scripts() { | |
if ( is_admin() ) | |
return; | |
global $wp_scripts; |
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 | |
if ( ! class_exists( 'Autoload_WP' ) ) { | |
/** | |
* Generic autoloader for classes named in WordPress coding style. | |
*/ | |
class Autoload_WP { | |
public $dir = __DIR__; |
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
{ | |
"name" : "rarst/install-test", | |
"description" : "Test project for WordPress stack via Composer", | |
"authors" : [ | |
{ | |
"name" : "Andrey Savchenko", | |
"homepage": "http://www.Rarst.net/" | |
} | |
], | |
"type" : "project", |
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 | |
namespace Rarst\GitHub\Gist; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Command\Guzzle\Description; | |
use GuzzleHttp\Command\Guzzle\GuzzleClient; | |
/** | |
* Build Gist comments feed for specific user, using GitHub API. |
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 | |
add_action( 'init', function () { | |
if ( ! function_exists( 'afc_add_item' ) || ! function_exists( 'apc_clear_cache' ) ) { | |
return; | |
} | |
afc_add_item( array( | |
'id' => 'apc', |
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
javascript:(function () { | |
var selection = window.getSelection().toString(); | |
var anchor = selection ? selection : document.title; | |
void(prompt('', '[' + anchor + '](' + location.href + ')')); | |
})(); |
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 | |
error_reporting( E_ALL ^ E_STRICT ); // le sigh | |
require __DIR__ . '/wordpress/tools/i18n/makepot.php'; | |
/** | |
* Additionally scans for localized strings in Mustache templates. | |
*/ | |
class MustachePOT extends MakePOT { |
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 | |
if ( isset( $_GET['grid'] ) ) { | |
add_action( 'wp_print_styles', function () { ?> | |
<style type="text/css"> | |
@media (min-width: 768px) { | |
body { | |
background: url("http://griddle.it/720px-12-30px") repeat-y center top !important; | |
} |