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
import os.path | |
p = lambda *x: os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', *x)) | |
# Main configuration goes here | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': True, | |
'formatters': { | |
'standard': { |
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
# vim:syntax=apparmor | |
# | |
# Copyright (C) 2012 Lekensteyn <lekensteyn@gmail.com> | |
#include <tunables/global> | |
/opt/skype/skype { | |
#include <abstractions/kde> | |
#include <abstractions/nameservice> | |
#include <abstractions/video> | |
#include <abstractions/audio> |
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
// see See http://stackoverflow.com/questions/7563169/detect-which-word-has-been-clicked-on-within-a-text | |
$(".clickable").click(function(e) { | |
s = window.getSelection(); | |
var range = s.getRangeAt(0); | |
var node = s.anchorNode; | |
while (range.toString().indexOf(' ') != 0) { | |
range.setStart(node, (range.startOffset - 1)); | |
} | |
range.setStart(node, range.startOffset + 1); | |
do { |
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
''' | |
Bunch of functions to do basic image similarity detection | |
See: | |
http://www.gossamer-threads.com/lists/python/python/901273 | |
http://sourceforge.net/projects/imsim/?source=dlp | |
''' | |
from PIL import Image | |
from PIL import ImageStat |
NewerOlder