This file contains hidden or 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
--- Mimeo.py.old 2012-11-22 13:05:48.340854666 +0000 | |
+++ Mimeo.py 2012-11-22 13:06:13.363724740 +0000 | |
@@ -1219,6 +1219,10 @@ | |
try: | |
desktop.load() | |
+ # Skip this desktop if it has no Desktop Entry Group | |
+ if not DEG in desktop: | |
+ continue | |
+ |
This file contains hidden or 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
requirejs.config({ | |
shim: { | |
'foundation/jquery.foundation.topbar': { | |
deps: ['jquery'], | |
}, | |
'foundation/jquery.cookie': { | |
deps: ['jquery'] | |
}, | |
'foundation/jquery.event.move': { | |
deps: ['jquery'] |
This file contains hidden or 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
// views.py | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from django.shortcuts import render | |
from django.http import HttpResponseRedirect | |
from loisdesigns.forms import EnquiryForm | |
from django.http import Http404 | |
from django.core.mail import send_mail |
This file contains hidden or 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/bash | |
ICONPATH=$HOME/.dzen | |
source ~/.colors | |
get_now_playing() { | |
local state | |
local updating | |
local update | |
local string |
This file contains hidden or 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
import sys | |
import colorsys | |
from colorz import colorz | |
WALLPAPER = '/home/james/.wallpaper' | |
COLORS = '/home/james/.colors' | |
XRESOURCES = '/home/james/.Xresources' | |
cols = '' | |
xres = """ |
This file contains hidden or 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
ul.nav-bar { | |
@include rounded($color8); | |
li, li.active, li.has-flyout, li:hover, li.active:hover, | |
li:last-child { | |
@include display-font; | |
background-color: transparent; | |
a, a:first-child { | |
font-size: 16px; | |
} | |
border: 0; |
This file contains hidden or 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
server { | |
listen 80; | |
server_name %(name)s %(aliases)s; | |
client_max_body_size 4G; | |
keepalive_timeout 5; | |
gzip on; | |
gzip_static on; | |
gzip_min_length 1000; | |
gzip_types text/css text/plain text/javascript application/x-javascript application/x-json; |
This file contains hidden or 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
var search_for_address = function(element, o, e_lat, e_lon) { | |
var address = $('#id_address_1').val() + ', ' | |
+ $('#id_city option:selected').text() + ', ' | |
+ $('#id_postcode').val(); | |
var gc = new google.maps.Geocoder(); | |
var request = { | |
address: address | |
} | |
gc.geocode(request, function(result, status) { | |
if (status != 'OK') { |
This file contains hidden or 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
# Some sample "models" | |
class Model(object): | |
id = None | |
def save(self, *args, **kwargs): | |
# Here would be some code that would get a list of objects to call | |
# invalidate() on when it is saved, based on self.id |
This file contains hidden or 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
""" Excuse the horrendous code """ | |
COUNT = 90 | |
WORDS = ['pug', 'user', 'group'] | |
from collections import namedtuple | |
from copy import copy | |
g = [] |