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
--- ack.pl 2013-01-22 08:44:50.810396100 -0500 | |
+++ ack-1.9.6.pl 2012-11-19 16:51:47.066613100 -0500 | |
@@ -1645,7 +1645,6 @@ | |
return if $filename =~ m{^core\.\d+$}o; | |
return if $filename =~ m{[._].*\.swp$}o; | |
return if $filename =~ /[.-]min\.js$/; | |
- return if $filename =~ /[.-]min\.css$/; | |
return 1; | |
} |
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
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
source ~/git-prompt.sh | |
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash | |
source ~/bash_completion.d/git-completion.bash | |
# https://github.com/bobthecow/git-flow-completion | |
source ~/bash_completion.d/git-flow-completion.bash | |
alias ll='ls -lah' |
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
#!/bin/bash | |
KEY="mintty" | |
PROMPT="Open mintty h&ere" | |
if [ -z "$KEY" ] || [ -z "$PROMPT" ] ; then | |
echo "Key and Prompt cannot be empty" | |
exit 1 | |
fi |
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 | |
/** | |
* Disable JetPack notifications which throw errors in Chrome: | |
* Unsafe JavaScript attempt to access frame with URL https://public-api.wordpress.com/rest/?notes_iframe=jetpack#http://example.com/wp-admin/edit.php?mode=excerpt from frame with URL http://bgrwp.cfgdev.com/wordpress/wp-admin/edit.php?mode=excerpt. The frame requesting access has a protocol of 'http', the frame being accessed has a protocol of 'https'. Protocols must match. | |
* | |
* @author Corey Gilmore <corey@bgr.com> | |
* | |
*/ | |
function x_remove_jetpack_notifications() { |
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 getParam(p) { | |
if( typeof getParam.qs == 'undefined' ) { | |
getParam.qs = ''; | |
getParam.params = {}; | |
} | |
if( !window.location.search ) { | |
return false; | |
} | |
if( getParam.qs != window.location.search ) { | |
getParam.qs = window.location.search; |
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
links=[]; all=[]; | |
function n(n){ | |
return n > 9 ? "" + n: "0" + n; | |
} | |
jQuery('#treeroot a').each(function(ix, val){ | |
e=jQuery(this); | |
h='http://topix.landrover.jlrext.com/topix/service/procedure/225542/PDF/' + e.attr('rel').split('#')[0] + '/en_GB'; | |
t=e.find('nobr').text(); | |
links.push(h); | |
all.push([t,h]); |
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 number_longhand( $num ) { | |
$is_array = is_array( $num ); | |
if( !$is_array ) | |
$num = array( $num ); | |
$num = preg_replace( '/[^\d\.BMK]/i', '', $num ); | |
foreach( $num as $index => $n ) { |
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 browser: true, ass: true, eqeq: true, forin: true, newcap: true, nomen: true, plusplus: true, regexp: true, unparam: true, sloppy: true, todo: true, vars: true, white: true */ | |
/*! | |
* jquery-deparam: deparam function separated from jQuery BBQ v1.3pre by Ben Alman | |
* http://benalman.com/projects/jquery-bbq-plugin/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
// Project Home - http://benalman.com/projects/jquery-bbq-plugin/ |
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
filter : option_siteurl | |
filter : option_home | |
filter : option_siteurl | |
filter : option_blog_charset | |
action : plugins_loaded | |
filter : plugins_url | |
filter : default_option_embed_autourls | |
action : jetpack_modules_loaded | |
filter : jetpack_enable_open_graph | |
action : sanitize_comment_cookies |
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
filter : option_siteurl | |
filter : option_home | |
filter : option_siteurl | |
filter : option_blog_charset | |
action : plugins_loaded | |
filter : plugins_url | |
filter : default_option_embed_autourls | |
action : jetpack_modules_loaded | |
filter : jetpack_enable_open_graph | |
action : sanitize_comment_cookies |