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 | |
/** | |
* Removes the 'Members Only' prefix from password-protected posts | |
* | |
* @see get_the_title() | |
* | |
* @param string $protected Text prefixed to the title for password-protected posts. | |
* | |
* @return string The filtered prefix text. | |
*/ |
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: Disable Sitewide Plugins | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Version: 0.1 | |
*/ | |
if ( 'capsule' === get_option( 'template' ) ) { |
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
// ==UserScript== | |
// @name Fix GitHub URLs on Feedly | |
// @namespace http://bungeshea.com | |
// @version 0.1 | |
// @description Fixes links in GitHub feeds from resolving to s3.feedly.com | |
// @match https?://cloud.feedly.com/#subscription%2Ffeed%2Fhttps%3A%2F%2Fgithub.com%2*.private.atom* | |
// @copyright Shea Bunge, 2013 | |
// ==/UserScript== | |
@require "http://code.jquery.com/jquery-latest.min.js"; |
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 | |
/* Register custom post types on the 'init' hook. */ | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 0.1.0 | |
* @access public |
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 sublime, sublime_plugin, os, subprocess | |
class ConemuCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
if os.name == "nt": | |
startupinfo = subprocess.STARTUPINFO() | |
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW | |
process = subprocess.Popen(('c:/Program Files (x86)/ConEmu/ConEmu.exe', '/single', self.view.file_name()), |
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
MsgBox Hello World! |
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
body.home { | |
top: 0 !important; | |
margin: 0 auto; | |
max-width: 100%; | |
} | |
#feedlyTabs { | |
padding-right: 55px !important; | |
padding-left: 10px !important; | |
max-width: 200px; |
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 | |
/* | |
* dl-file.php | |
* | |
* Protect uploaded files with login. | |
* | |
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
* | |
* @author hakre <http://hakre.wordpress.com/> | |
* @license GPL-3.0+ |
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
/******************** Line Follow ********************/ | |
task LineFollow() | |
{ | |
OnFwd(L_MOTOR, POWER); | |
while(true) | |
{ | |
if(SENSOR_A_BLACK) | |
{ | |
if(SENSOR_B_WHITE) |
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 | |
namespace Shea\Example_Plugin; | |
/** | |
* Enable autoloading of plugin classes in namespace. | |
* | |
* @param $class_name | |
*/ | |
function autoload( $class_name ) { |