Skip to content

Instantly share code, notes, and snippets.

View seanbuscay's full-sized avatar

Sean Buscay seanbuscay

View GitHub Profile
{% spaceless %}{{ content.field_story_program_name|render|trim }}{% endspaceless %}
@seanbuscay
seanbuscay / non-stick-footer.js
Last active September 7, 2018 17:55
A js option to push a web page footer to the bottom of the page, but not have it act as a sticky footer.
@seanbuscay
seanbuscay / vue.html
Created February 25, 2017 19:26
How to use Vue Moment
<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>
$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();
$aliases['alias'] = array(
...
'ssh-options' => '-i path/to/key.pem',
...
);
@seanbuscay
seanbuscay / gitrev.sh
Created June 28, 2016 22:25
Show last revision
git rev-parse HEAD
@seanbuscay
seanbuscay / ls-ignored.sh
Last active September 7, 2018 19:25
Git list ignored files
git status --ignored
@seanbuscay
seanbuscay / check_ignore.sh
Created June 2, 2016 21:28
check for ignored files
git ls-files --others -i --exclude-standard | grep css | grep -v files | grep -v .sass-cache
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
@seanbuscay
seanbuscay / new_gist_file_0
Created March 3, 2016 23:17
Replace html tags
<[^>]*>