- http://groups.google.com/group/twitter-development-talk/msg/293e23a5213f9a50
- screen name: varchar(20)
- name: varchar(20)
- location: varchar(30)
- description: varchar(160)
- time zone: you should store this in a native time format
- source: varchar(256)
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
(add-to-list 'auto-mode-alist '("\\.css$" . css-mode)) | |
(autoload 'css-mode "css-mode" "Mode for editing Cascading Style Sheets") | |
;; make css colors their actual colors | |
(require 'cl) | |
(defun hexcolour-luminance (color) | |
"Calculate the luminance of a color string (e.g. \"#ffaa00\", \"blue\"). | |
This is 0.3 red + 0.59 green + 0.11 blue and always between 0 and 255." | |
(let* ((values (x-color-values color)) | |
(r (car values)) |
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
; Display CSS Hexadecimal color values | |
; as background to that value. | |
(defvar hexcolour-keywords | |
'(("#[abcdef[:digit:]]\\{6\\}" | |
(0 (put-text-property | |
(match-beginning 0) | |
(match-end 0) | |
'face (list :background | |
(match-string-no-properties 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
from django import template | |
from django.template.defaultfilters import stringfilter | |
from django.utils.html import conditional_escape | |
from django.utils.safestring import mark_safe | |
import re | |
register = template.Library() | |
# (?:\A|[\s\.,:;'"])(@(\w{1,20}))(?!\.?\w) | |
twitterize_pattern = r''' |
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
(when (load "flymake" t) | |
(load "flymake-cursor" t) | |
(defun flymake-pyflakes-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name)))) | |
(list "/PATH/TO/YOUR/pyflakes" (list local-file)))) |
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 pydoc that can read modules using Django. | |
#!/usr/bin/env python | |
from django.conf import settings | |
if not settings.configured: | |
settings.configure() | |
import pydoc | |
if __name__ == "__main__": | |
pydoc.cli() |
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
# -*- coding: utf-8 -*- | |
""" | |
Example Usage | |
============= | |
>>> import datetime | |
>>> start = datetime.date(2009, 6, 21) | |
>>> g1 = daterange(start) |
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
bgImageTotal=5; | |
randomNumber = Math.round(Math.random()*(bgImageTotal-1))+1; | |
imgPath=('/static/images/headers/'+randomNumber+'.png'); | |
$('.header').css('background-image', ('url("'+imgPath+'")')); |
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
For the Birds - http://nycbirdlist.org/ | |
Code monkeys - http://djapp.org/ | |
Freelancer - http://tnycnt.com/ | |
Sword of Truth - http://leafychat.com/ | |
wwswd - http://wwswd.com/ | |
East meets West - http://whohasmy.net/ | |
crunkd - http://getcrunkd.com:88/ | |
Ra - http://www.ntrie.com/ | |
arctangent - http://rudestword.com/ | |
Slugs - http://flicasa.com/ |