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
<?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
// ==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 | |
/** | |
* 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
<?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
javascript:location.href='http://www.explainxkcd.com/wiki/index.php?title='+window.location.pathname.replace(/^\/|\/$/g, '') |
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
$(function(){ | |
$('a[href^="\\#"]').click(function(event){ | |
event.preventDefault(); | |
var full_url = this.href; | |
var parts = full_url.split("#"); | |
var trgt = parts[1]; | |
var target_offset = $("#"+trgt).offset(); | |
var target_top = target_offset.top; | |
$('html, body').animate({scrollTop:target_top}, 500); | |
}); |
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: oEmbed in Comments | |
* Description: Allow oEmbeds in comment text. A fork of http://wordpress.org/plugins/oembed-in-comments/ | |
* Version: 1.2 | |
* Author: Evan Solomon, modified by Shea Bunge | |
*/ | |
class oEmbed_Comments { |
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: oEmbed in Comments | |
* Description: Allow oEmbeds in comment text. A fork of http://wordpress.org/plugins/oembed-in-comments/ | |
* Version: 1.2 | |
* Author: Evan Solomon, modified by Shea Bunge | |
*/ | |
class oEmbed_Comments { |
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 | |
/** | |
* If the search query only returns a single post, redirect to that post. | |
* | |
* @return void | |
* @author Paulund | |
* @link http://www.paulund.co.uk/redirect-search-results-return-one-post | |
*/ | |
function redirect_single_post() { |