$(document).ready(function () {
  $('pre').each(function () {
      var t = $(this);
      t.addClass('l' + ((t.height() / 16) % 3));
  });

  $('a[sprite]').each(function () {
    var t = $(this);
    var index = parseInt(t.attr('sprite'));
    var offs = 2 + index * 20;
    t.css('background-position', '-2px -' + offs + 'px');
  });

  $('link[href="http://gist.github.com/stylesheets/gist/embed.css"]').remove();
});
