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
/** | |
* Implements hook_preprocess(). | |
*/ | |
function clean_liquid_preprocess(&$variables) { | |
clean_preprocess($variables); | |
} |
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
$ git browse | |
Please set $BROWSER to a web launcher to use this command. | |
$ export BROWSER=echo | |
$ git browse | |
https://github.com/user/repo/tree/branch |
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 bash resource file. | |
if [ "$BASH" ]; then | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
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 | |
/** | |
* Override or insert variables into the page templates. | |
* | |
* @param $variables | |
* An array of variables to pass to the theme template. | |
*/ | |
function clean_liquid_preprocess_page(&$variables) { | |
if (isset($variables['attributes_array']['class'])) { |
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
<div %attributes> | |
%title_prefix | |
%title | |
%title_suffix | |
<div %content_attributes> | |
%content | |
</div> | |
</div> |
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 | |
$pattern = '#<p[^/>]*>(\s| )*</p\s*>\s*\n?#'; | |
$subject = <<<DOC | |
<p> </p> <p> </p> | |
<p> </p><p> </p><p> </p><p> </p> | |
<p> </p> <p> </p> | |
<p class="bold"></p> | |
<p> </p> |
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
/** | |
* Implements hook_filter_info(). | |
*/ | |
function ex_mobile_filter_info() { | |
return array( | |
'ex_mobile_strip_p' => array( | |
'title' => t('Strip empty paragraphs'), | |
'description' => t('Removes paragraph tags from text which have only whitespace inside of them.'), | |
'process callback' => 'ex_mobile_filter_ex_mobile_strip_p_process', | |
'cache' => TRUE, |
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
preexec () { | |
echo -ne "\ek$2\e\\" | |
} |
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
/* Right column */ | |
.holygrail { | |
background: #CDEAFF; | |
} | |
/* Left column */ | |
.holygrail .colleft { | |
background: #CFC; | |
} |