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
# Show specifically only the last commit to affect the path/to/file - | |
# this will be the commit where the file as deleted. | |
git log -1 -- path/to/file |
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 | |
/* | |
* A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID. | |
* | |
* See http://core.trac.wordpress.org/ticket/13258 | |
* | |
* Usage, as normal: | |
* wp_dropdown_categories($args); | |
* |
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/sh | |
## Installation ## | |
# > git clone https://gist.github.com/1367d0aae9e059a57ebf.git ~/git-jira.sh | |
# > git config --global alias.jira '!. ~/git-jira.sh' | |
## | |
## Commands ## | |
# |
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
# To use this, open ~/.bash_profile, and add the function below. | |
# Then run . ~/.bash_profile to reload your profile. | |
# Usage: pdp <jira_number> | |
pdp() { open -a "Google Chrome" https://obujira.searshc.com/jira/browse/PDP-$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
/* All Smartphones in portrait and landscape ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
#join_ucr { | |
text-align: center; | |
position : fixed; | |
font-size: 0px; | |
font-weight: bold; | |
padding-top: 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
conf/app1/nginx.conf | |
conf/app1/included-file.conf | |
conf/app1/other-included-file.conf | |
conf/app2/nginx.conf | |
conf/app2/included-file.conf | |
conf/app2/other-included-file.conf | |
conf/app3/nginx.conf | |
conf/app3/included-file.conf |
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 ## functions.php | |
/** | |
* This 'registers' the sidebar and tells WordPress it exists, as well as names it | |
* and gives it wrapping markup for each widget, and the title if applicable. | |
* | |
* Change the markup to meet your needs. | |
*/ | |
if (function_exists('register_sidebar')) { | |
register_sidebar(array( | |
'name' => 'Hero', |
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 print_pre($array){ | |
echo "<pre style='z-index:1000;background-color:rgba(192,192,192,0.9);left:0;top:100px;width:4000px;overflow:scroll;position:absolute;white-space: pre;'>"; | |
print_r($array); | |
echo "</pre>"; | |
} | |
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
add_filter('cth_category_template', 'descendant_templates'); | |
/** | |
* My plugin will call your function, and pass it the list of all templates | |
* before sending them off to find which ones match. | |
*/ | |
function descendant_templates($templates){ | |
if(is_category()){ | |
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
// In function kd_meta_box_output() replace | |
$thumbnail = wp_get_attachment_image( $image_id, array( 266, 266 ) ); | |
//With... | |
$type = get_post_mime_type($iamge_id); | |
$icon = in_array($type, array('application/pdf')) ? true : false; | |
$thumbnail = wp_get_attachment_image( $image_id, array( 266, 266 ), $icon ); |
OlderNewer