Skip to content

Instantly share code, notes, and snippets.

View anjiro's full-sized avatar

Daniel Ashbrook anjiro

View GitHub Profile
@anjiro
anjiro / trello_json_to_html_outline.py
Last active August 29, 2015 14:26
Quick and dirty conversion of a Trello JSON export to an HTML outline
import json, codecs, mistune
from collections import defaultdict
def trello_json_to_html(jsonfile, outfile):
markdown = mistune.Markdown()
trello = json.load(open(jsonfile))
cards = defaultdict(list)
for card in trello['cards']:
cards[card['idList']].append(card)
@anjiro
anjiro / PythagorasTree.js
Last active August 29, 2015 14:24
Pythagoras tree in OpenJSCAD
//Experiment with rendering L-Systems in OpenJSCAD
// (see https://en.wikipedia.org/wiki/L-system#Example_2:_Pythagoras_tree)
//Production rules
var rules =
{
"1": "11",
"0": "1[0]0",
};
@anjiro
anjiro / gist:aa92039c9a40a708a936
Created July 15, 2014 21:42
jQuery.mmenu dynamic content bug
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js"></script>
<script src="js/jquery.mmenu.min.all.js"></script>
<link rel="stylesheet" href="css/jquery.mmenu.all.css">