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
// Author: Ross Patton (abbreviated by KV) | |
// Link to WIRED json feed | |
var apiUrl = 'http://' + location.host + '/wp-json/wp/v2/posts/'; | |
// Fallback if OBR not available | |
if ( typeof OBR === 'undefined' ) { | |
$( getAll('poweredByOutbrain') ).remove(); | |
return $.getJSON( apiUrl, function(res) { |
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: Debug Edit Freedom | |
//Description: Edit underscore-prefixed and other protected meta from the admin | |
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) | |
add_filter( 'is_protected_meta', '__return_false' ); |
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 hunter2( $comment_text, $comment ) { | |
if ( get_current_user_id() !== $comment->user_id ) { | |
$comment_text = str_replace( 'hunter2', '*******', $comment_text ); | |
} | |
return $comment_text; | |
} | |
add_filter( 'get_comment_text', 'hunter2', 1, 2 ); |
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
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */ | |
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */ | |
var dbg = (typeof console !== 'undefined') ? function(s) { | |
console.log("Readability: " + s); | |
} : function() {}; | |
/* | |
* Readability. An Arc90 Lab Experiment. | |
* Website: http://lab.arc90.com/experiments/readability |
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
import gevent | |
from gevent import monkey | |
monkey.patch_socket() | |
import hashlib | |
import os | |
import redis | |