Skip to content

Instantly share code, notes, and snippets.

View samjamead's full-sized avatar
👋

Sam Mead samjamead

👋
View GitHub Profile
@sskylar
sskylar / tags.html
Last active January 26, 2021 13:40
Sort Jekyll tags by popularity (number of posts)
<ul>
{% capture tags %}
{% for tag in site.tags %}
<li data-sort="{{ site.posts.size | minus: tag[1].size | prepend: '0000' | slice: -4, 4 }}">
<a href="/{{ site.tag_page_dir }}/{{ tag[0] | slugify: 'pretty' }}">{{ tag[0] }} <span>{{ tag[1].size }}</span></a>
</li>
{% endfor %}
{% endcapture %}
{{ tags | split:'</li>' | sort | join:'</li>' }}
</ul>
@carlos8f
carlos8f / zen.txt
Last active February 20, 2022 12:32
101 zen stories
Abraham Lincoln once asked one of his secretaries, If you call a tail a leg, how many legs does a horse
have?.
Five, replied the secretary.
No, said the President, The answer is four. Calling a tail a leg doesn't make it a leg.
A group of frogs were traveling through the woods, when two of them fell into a deep pit. All the other
frogs gathered around the pit. When they saw how deep it was, they told the two frogs that they were as
good as dead.
The two frogs ignored the comments and tried to jump up out of the pit with all of their might. The other
frogs kept telling them to stop, that they were as good as dead. Finally, one of the frogs took heed to what