Skip to content

Instantly share code, notes, and snippets.

View sehmaschine's full-sized avatar

Patrick Kranzlmueller sehmaschine

View GitHub Profile
@sehmaschine
sehmaschine / gist:2045637
Created March 15, 2012 17:55
compass responsive quirks
/* Imports
------------------------------------------------------------------------------------------------------ */
@import "partials/base";
@import "blueprint";
@import "compass/typography/vertical_rhythm";
/* >1220px
------------------------------------------------------------------------------------------------------ */
@sehmaschine
sehmaschine / gist:1221774
Created September 16, 2011 10:23
filebrowse-field: value needs to be a fileobject
if value != "":
try:
value = FileObject(url_to_path(value))
if value.is_version and VERSIONS_BASEDIR:
final_attrs['directory'] = os.path.split(value.original.path_relative)[0]
else:
final_attrs['directory'] = os.path.split(value.path_relative)[0]
except:
pass