Skip to content

Instantly share code, notes, and snippets.

View nerdburn's full-sized avatar

Shawn Adrian nerdburn

View GitHub Profile
did:3:kjzl6cwe1jw14b51r33y1gua8w9at3lo2lkrpf8qdfqai8mftzyb64dj7l5yza1
@nerdburn
nerdburn / gist:32c5c28fdaf80f26f1b5
Created May 13, 2015 17:08
Footer Meta Without Postachio.js
<!-- assets -->
<script src="{{ static('libs/mediaelement/mediaelement-and-player.min.js') }}"></script>
<!-- media player -->
<script type="text/javascript">
$(document).ready(function(){
$('audio').mediaelementplayer();
});
</script>
@nerdburn
nerdburn / gist:39c91f20559bd3abac18
Created April 11, 2015 19:09
Postach.io - Header Meta
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="author" content="{{ site.author }}">
{% if is_home %}
<meta name="description" content="{{ site.bio|striptags|e }}">
@nerdburn
nerdburn / gist:f0a2c80ecfb76d6a90d6
Created December 3, 2014 20:57
Mastodon - HTML Subscribe Form
<form action="http://www.mastodonmail.com/s/yourListKeyHere" method="post">
<input type="hidden" name="mmSuccessUrl" value="yourWebSiteGoesHere" />
<p><input name="mmName" type="text" placeholder="Name" /></p>
<p><input name="mmEmail" type="email" placeholder="Email" required /></p>
<p><button type="submit">Subscribe</button></p>
</form>
@nerdburn
nerdburn / gist:7f2c7c0fb194297159e8
Created November 21, 2014 19:47
MathJax Example
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
{% for year, items in sort_by_year(posts) %}
<h2>{{ year }}</h2>
<ul class="posts">
{% for post in items %}
<li>
<article itemscope itemtype="http://schema.org/Article">
<time datetime="{{ post.created_at }}">{{ post.created_at.strftime('%d %b') }}</time> <a href="{{ post.permalink }}" class="permalink">{{ post.title }}</a>
<div class="post-tags">
{{ post.tags|format_tags(humanize=True) }}
</div>
{% if post.content %}
<p>{{ post.content|truncate(200) }}</p>
{% endif %}
{% if post.content|wordcount > 0 %}
<p>{{ post.content }}</p>
{% endif %}
{{ post.content|striptags }}
<p>Posted on {{ post.created_at|format_date }}</p>