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
emacs -q --eval '(condition-case err (progn (load "~/.emacs") (kill-emacs 0)) (error (kill-emacs 1)))' | |
# Source http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/bed5b2bd8b237f5a?pli=1 |
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.db import connection | |
cursor = connection.cursor() | |
cursor.execute("<SOME SQL>") | |
results = [] | |
rows = cusor.fetchall() | |
for row in rows: |
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
/*! | |
* Fade Out element and remove from DOM | |
*/ | |
(function($) | |
{ | |
$.fn.fadeOutAndRemove = function(duration) | |
{ | |
duration = (duration === undefined) ? 250 : duration; | |
return this.fadeOut(duration, function() |
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.core import urlresolvers | |
from django.http import HttpResponse | |
intro_text = """Named URL patterns for the {% url %} tag | |
======================================== | |
e.g. {% url pattern-name %} | |
or {% url pattern-name arg1 %} if the pattern requires arguments | |
""" |
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
.......EEEEEEEEEEEEEEE....................... | |
====================================================================== | |
ERROR: Adding a new ia object, getting it and testing values | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/rleland/PROJECTS/api-trunk-test/src/mde/tests.py", line 220, in setUp | |
self.item1a = Item.objects.create(name = "item one test a") | |
File "/Users/rleland/PROJECTS/api-trunk-test/parts/project/django/db/models/manager.py", line 126, in create | |
return self.get_query_set().create(**kwargs) | |
File "/Users/rleland/PROJECTS/api-trunk-test/parts/project/django/db/models/query.py", line 315, in create |
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
Read these instructions: | |
http://blog.ryanparman.com/2009/06/30/run-ie6-ie7-ie8-images-virtualbox-macosx/ | |
At some point you'll need this command: | |
~/Applications/Q.app/Contents/MacOS/qemu-img convert -O raw IE8XP.vmdk IE8XP.raw && /Applications/VirtualBox.app/Contents/MacOS/VBoxManage convertdd IE8XP.raw IE8XP.vdi && rm IE8XP.raw |
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
testing gisting from vim |
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
testing gists from vim again |
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
" remove trailing whitespace | |
autocmd BufWritePre *.py :%s/\s\+$//e |
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
GEE MR. NOLLER YR MEAN I DON'T WANNA BE ON YR STUPID EMAIL LIST! |