Skip to content

Instantly share code, notes, and snippets.

View alykat's full-sized avatar

Alyson Hurt alykat

View GitHub Profile
@alykat
alykat / dailygraphics-pym-child.js
Created May 27, 2014 22:18
Blog Post: dailygraphics pym child
var pymChild = null;
...
$(window).load(function() {
pymChild = new pym.Child({
renderCallback: render
});
})
@alykat
alykat / dailygraphics-pym.html
Created May 27, 2014 22:16
Blog Post: dailygraphics pym embed
<div id="responsive-embed-my-new-graphic">
</div>
<script src="http://apps.npr.org/dailygraphics/graphics/my-new-graphic/js/lib/pym.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
var pymParent = new pym.Parent(
'responsive-embed-my-new-graphic',
'http://apps.npr.org/dailygraphics/graphics/my-new-graphic/child.html',
{}
);
@alykat
alykat / copytext_table.html
Last active August 29, 2015 14:01
Blog post: Jinja/copytext sample code
<table>
<thead>
<tr>
<th>{{ COPY.labels.hdr_category }}</th>
<th>{{ COPY.labels.hdr_jan }}</th>
<th>{{ COPY.labels.hdr_feb }}</th>
<th>{{ COPY.labels.hdr_mar }}</th>
</tr>
</thead>