Skip to content

Instantly share code, notes, and snippets.

@carlthuringer
carlthuringer / gist:2691146
Created May 14, 2012 01:19
While looking at 'My Library' on Audible, get it to show all titles for all time, then use this script to store a list of normalized, deduped titles.
var titles = '';
$('a[name="tdTitle"]').each(function(el){var text = $(this).html(); text = text + "\n"; titles = titles + (text.search('Part') > 0 ? (text.search('Part 1') > 0 ? text : '') : text).replace(' (Unabridged)', '').replace(' Part 1', '')});
@carlthuringer
carlthuringer / coffeescript
Created June 20, 2011 15:31
Coffeescript Syntax oddities
$('div').live 'pagebeforeshow', (event, ui)->
$('#statistics').height(70)
$('#stats-grid-plus-minus a').toggle(->
$(this).parents('#statistics').animate({ height: "170px"}, 500)
->
$(this).parents('#statistics').animate({ height: "70px"}, 500)
)
$('div').live('pagebeforeshow', function(event, ui) {
$('#statistics').height(70);
#!/bin/bash
if [ -z "$1" ]; then
wdir="."
else
wdir=$1
fi
for f in $( find . -name '*erb' ); do
out="${f%.erb}.haml"
if [ -e $out ]; then