Skip to content

Instantly share code, notes, and snippets.

View mtinsley's full-sized avatar

Mathew Tinsley mtinsley

  • Orange County, CA
View GitHub Profile
@mtinsley
mtinsley / column-toggle-and-size-for-jira-rapid-boards.js
Last active August 29, 2015 14:27 — forked from hestenet/column-toggle-and-size-for-jira-rapid-boards.js
A javascript hack for JIRA that allows resizing of RapidBoard columns and toggling their display on/off - just add to your Announcement Banner
/////////////////////
//
// DO NOT DELETE ME!
// Please take care when editing the announcement banner - it contains custom Javascript/CSS to improve Jira's UI.
//
/////////////////////
/////////////////////
// Inspired by
// https://jira.atlassian.com/browse/GHS-3690?focusedCommentId=693585&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-693585
@mtinsley
mtinsley / remove-empty-p.php
Last active August 29, 2015 14:21 — forked from ninnypants/remove-empty-p.php
Removes empty paragraphs from the post content
<?php
/**
* Forked From: https://gist.github.com/ninnypants/1668216
*
* Modified to handle comments before or after an element.
*/
add_filter( 'the_content', 'remove_empty_p', 20, 1 );
function remove_empty_p( $content ){
// clean up p tags around block elements
$content = preg_replace( array(