View twig-filter-remove-space.twig
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
{% spaceless %}{{ content.field_story_program_name|render|trim }}{% endspaceless %} |
View vue.html
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 id="app"> | |
<ul> | |
<li v-for="item in items"> | |
<p>{{ moment(item).format('MMMM Do YYYY, h:mm:ss a') }}</p> | |
<p class="method">{{ date(item) }}</p> | |
<p class="filter">{{ item | moment }}</p> | |
</li> | |
</ul> | |
</div> |
View new_gist_file_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
$query = new EntityFieldQuery(); | |
$query->entityCondition('entity_type', 'node') | |
->propertyCondition('status', 1) | |
->propertyCondition('type', array('article', 'page', 'blog')) | |
->propertyOrderBy('created', 'DESC') | |
->range(0, 5); | |
$result = $query->execute(); |
View new_gist_file_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
$aliases['alias'] = array( | |
... | |
'ssh-options' => '-i path/to/key.pem', | |
... | |
); |
View gitrev.sh
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 rev-parse HEAD |
View ls-ignored.sh
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 status --ignored |
View check_ignore.sh
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 ls-files --others -i --exclude-standard | grep css | grep -v files | grep -v .sass-cache |
View git reset.sh
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 checkout master git reset --hard e3f1e37 | |
git push --force origin master | |
# Then to prove it (it won't print any diff) git diff master..origin/master |
View new_gist_file_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
<[^>]*> |
NewerOlder