This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# split the wallpaper for two monitors | |
sudo convert -crop 1200x1920 $1 /etc/lightdm/background-%d.jpg | |
feh --bg-scale /etc/lightdm/background-0.jpg --bg-scale /etc/lightdm/background-1.jpg | |
# convert wallpaper to PNG, because i3lock doesn't handle the JPG. | |
sudo convert $1 /etc/lightdm/background.png | |
# create the color scheme from wallpaper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* | |
Yosemite for Firefox | |
Based on Tim Nguyen (Apple) | |
Updated by trojkat | |
*/ | |
/* back and forward buttons */ | |
#back-button { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#~ # -*- coding: utf-8 -*- | |
from urlparse import urlparse, parse_qs | |
from django.template import Template, Context | |
from django.conf import settings | |
def video_id(value): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from django.template import Context, loader | |
from gallery.models import Album | |
def parse(kwargs): | |
id = kwargs.get('numer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
def parse(kwargs): | |
url = kwargs.get('adres') | |
width = kwargs.get('szerokosc', getattr(settings, 'SHORTCODES_MP3_WIDTH', 425)) | |
if url: | |
return '<embed type="application/x-shockwave-flash" flashvars="audioUrl=%s" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="%s" height="27" quality="best" wmode="opaque"></embed>' % (url, width) | |
else: | |
return '' |