Skip to content

Instantly share code, notes, and snippets.

View andytlr's full-sized avatar

Andy Taylor andytlr

View GitHub Profile
{% capture truncated_content %}{{ page.content | truncatewords: 250 }}{% endcapture %}
{% if page.content != truncated_content %}
Reading time ~<span class="time">{{ page.content | number_of_words | append: '.0' | divided_by:180 }}</span>min.
{% endif %}
@andytlr
andytlr / gist:4052412
Created November 10, 2012 20:41
Insert time and date
do shell script "date +%Y-%m-%d\\ %H:%M:%S"