alan's Scraps
alan's profile
Scrap | Syntax | License | Created | Updated |
---|---|---|---|---|
Ugly jQuery workaround for Django adminHides dependent objects in admin deletion warning. Assumes that Thing.object_set.clear() has been called in a pre_delete signal or something.
|
Javascript | Public Domain | 03 Dec 2010 | 10 years ago |
My .vimrc.vimrc as of 9/9/2011
|
Vim | Public Domain | 29 Oct 2010 | 9 years, 4 months ago |
Random CSV processorNothing special, just a few reminders
|
Python | Public Domain | 20 Aug 2010 | 10 years, 5 months ago |
Type coercion in JavaScriptInduces a NaN value if the variable is not a number.
|
Javascript | Public Domain | 21 Jun 2010 | 10 years, 7 months ago |
Tweak varchar length in psql without nuking contentTweak varchar length in psql without nuking content
|
Sql | Public Domain | 28 Apr 2010 | 10 years, 8 months ago |
Set an SQL column to 'NOT NULL'I always forget how to do this
|
Sql | Public Domain | 22 Apr 2010 | 10 years, 9 months ago |
Haystack/Django-CMS integrationCreates a search index for django-cms pages
|
Python | New/Simple BSD | 13 Apr 2010 | 10 years, 9 months ago |
Reading STDOUTBecause I can never remeber how to do this
|
Python | Public Domain | 18 Feb 2010 | 10 years, 11 months ago |
convio.pyClass for interacting with Convio REST API
|
Python | Public Domain | 12 Jan 2010 | 10 years, 11 months ago |
foo(book):Just for screenshots
|
Python | Public Domain | 23 Dec 2009 | 11 years ago |
It's All TextWorkaround for using the *It's All Text* Firefox plugin in Mac OS
|
Bash | Public Domain | 15 Dec 2009 | 11 years ago |
Preprocess HTML in VimVim script for normalizing HTML
|
Vim | Public Domain | 15 Dec 2009 | 11 years ago |
MutteringsExample code from Why's Poignant Guide to Ruby
|
Ruby | Public Domain | 15 Dec 2009 | 11 years ago |
DistanceSimple application of the Pythagorean Theorem in Python
|
Python | Public Domain | 15 Dec 2009 | 11 years ago |
Bubble sortLearning implementation of bubble sort in Ruby
|
Ruby | Public Domain | 15 Dec 2009 | 11 years ago |
Fix Broken LinksUpdates redirected links, reports 404s. Beware, this is sometimes interpreted as a malicious robot, so it's important to check the output.
|
Python | Public Domain | 09 Dec 2009 | 10 years, 12 months ago |
Clean DBSanitizes a database
|
Python | Public Domain | 24 Nov 2009 | 10 years, 12 months ago |
Cocktail SortCocktail Sort in Ruby
|
Python | Public Domain | 24 Nov 2009 | 11 years ago |
Twitter PythonDescription
|
Python | Public Domain | 21 Nov 2009 | 11 years ago |