Skip to content

Instantly share code, notes, and snippets.

View BertrandBordage's full-sized avatar

Bertrand Bordage BertrandBordage

View GitHub Profile
@BertrandBordage
BertrandBordage / la_estrella-tenors_et_basses
Created October 11, 2011 10:51 — forked from papilip/la_estrella-tenors_et_basses
la estrella, portées des ténors et des basses
\version "2.15.14"
\include "italiano.ly"
\paper {
ragged-bottom = ##t % Met l'ensemble des portées vers le haut
}
\layout{
#(layout-set-staff-size 23)
}
\header{
title = "LA ESTRELLA"
find -iname "*.jpg" -type f -print0 | parallel --progress -0 -j +0 "mogrify -resize 800x800\> {}"
'''
Cache the generic relation field of all the objects
in the queryset, using larger bulk queries ahead of time.
Improved from original by Daniel Roseman:
http://blog.roseman.org.uk/2010/02/22/django-patterns-part-4-forwards-generic-relations/
'''
def cache_generics(queryset):