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
| !------------------------------------------------------------------------------- | |
| ! Xft settings | |
| !------------------------------------------------------------------------------- | |
| Xft.dpi: 96 | |
| Xft.antialias: false | |
| Xft.rgba: rgb | |
| Xft.hinting: true | |
| Xft.hintstyle: hintslight |
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
| /** | |
| * Turns someCrazyName into Some Crazy Name | |
| * Decent job of acroynyms: | |
| * ABCAcryonym => ABC Acryoynm | |
| * xmlHTTPRequest => Xml HTTP Request | |
| */ | |
| String.prototype.unCamelCase = function(){ | |
| return this | |
| // insert a space between lower & upper | |
| .replace(/([a-z])([A-Z])/g, '$1 $2') |
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
| from django.contrib.sessions.backends.base import SessionBase, CreateError | |
| from django.conf import settings | |
| from django.utils.encoding import force_unicode | |
| import redis | |
| class SessionStore(SessionBase): | |
| """ Redis store for sessions""" | |
| def __init__(self, session_key=None): | |
| self.redis = redis.Redis( |
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
| """ | |
| A quick copy/paste action you can drop into your `./manage.py shell` session so any | |
| queries executed are displayed in the shell output. | |
| If sqlparse is available it will use that to pretty print the SQL: | |
| http://code.google.com/p/python-sqlparse/ | |
| """ | |
| from django.db.backends import util | |
| try: | |
| import sqlparse |
NewerOlder