Skip to content

Instantly share code, notes, and snippets.

View npisenti's full-sized avatar

Neal Pisenti npisenti

View GitHub Profile
@npisenti
npisenti / stream-1.json
Created July 19, 2012 16:50
Stream sample json
{"timeline":{"headline":"MIT 18.06 Linear Algebra","type":"default","startDate":"2012,7,10","text":"Testing stream","asset":{"media":"","credit":"","caption":"test caption!"},"date":[{"text":"Check problem set","headline":"Lec 6 Solutions | MIT 18.06 Linear Algebra, Spring 2005","startDate":"2012,7,22","asset":{"media":"http://ocw.mit.edu/courses/mathematics/18-06sc-linear-algebra-fall-2011/ax-b-and-the-four-subspaces/transposes-permutations-vector-spaces/MIT18_06SCF11_Ses1.5sol.pdf","thumbnail":null,"caption":"yep"}},{"text":"Complete problem set","headline":"Lec 6 Problems | MIT 18.06 Linear Algebra, Spring 2005","startDate":"2012,7,12","asset":{"media":"http://ocw.mit.edu/courses/mathematics/18-06sc-linear-algebra-fall-2011/ax-b-and-the-four-subspaces/transposes-permutations-vector-spaces/MIT18_06SCF11_Ses1.5prob.pdf","thumbnail":null,"caption":"yep"}},{"text":"Watch lecture","headline":"Lec 6 | MIT 18.06 Linear Algebra, Spring 2005","startDate":"2012,7,23","asset":{"media":"http://www.youtube.com/watch?v=
@npisenti
npisenti / test-gist.md
Created July 19, 2012 13:40
Testing gist.io

This is a story

That isn't written yet. Testing gist.io. cool, eh?

subheading

another paragraph

@npisenti
npisenti / showjax.js
Created July 1, 2012 17:05
Mathjax + Showdown (markdown)
/* 'showjax' script from ls_atomic.
* used to render markdown (via showdown.js)
* and then render mathjax.
*/
$(document).ready(function() {
$(".markdown").each(function() { $(this).markdown(); }); // when document loads, render markdown + mathjax
$(".jaxonly").each(function() {$(this).renderJax(); }); // render sections that are mathjax-only