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 6 years, 5 months ago
My .vimrc.vimrc as of 9/9/2011
Vim Public Domain 29 Oct 2010 5 years, 9 months ago
Random CSV processorNothing special, just a few reminders
Python Public Domain 20 Aug 2010 6 years, 10 months ago
Type coercion in JavaScriptInduces a NaN value if the variable is not a number.
Javascript Public Domain 21 Jun 2010 7 years ago
Tweak varchar length in psql without nuking contentTweak varchar length in psql without nuking content
Sql Public Domain 28 Apr 2010 7 years, 1 month ago
Set an SQL column to 'NOT NULL'I always forget how to do this
tags: reminder sql
Sql Public Domain 22 Apr 2010 7 years, 2 months ago
Haystack/Django-CMS integrationCreates a search index for django-cms pages
Python New/Simple BSD 13 Apr 2010 7 years, 2 months ago
Reading STDOUTBecause I can never remeber how to do this
tags: reminder
Python Public Domain 18 Feb 2010 7 years, 4 months ago
convio.pyClass for interacting with Convio REST API
tags: api class convio
Python Public Domain 12 Jan 2010 7 years, 4 months ago
foo(book):Just for screenshots
Python Public Domain 23 Dec 2009 7 years, 5 months ago
It's All TextWorkaround for using the *It's All Text* Firefox plugin in Mac OS
Bash Public Domain 15 Dec 2009 7 years, 5 months ago
Preprocess HTML in VimVim script for normalizing HTML
Vim Public Domain 15 Dec 2009 7 years, 5 months ago
MutteringsExample code from Why's Poignant Guide to Ruby
tags: poignant ruby why
Ruby Public Domain 15 Dec 2009 7 years, 5 months ago
DistanceSimple application of the Pythagorean Theorem in Python
Python Public Domain 15 Dec 2009 7 years, 5 months ago
Bubble sortLearning implementation of bubble sort in Ruby
Ruby Public Domain 15 Dec 2009 7 years, 5 months 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 7 years, 5 months ago
Clean DBSanitizes a database
Python Public Domain 24 Nov 2009 7 years, 5 months ago
Cocktail SortCocktail Sort in Ruby
Python Public Domain 24 Nov 2009 7 years, 5 months ago
Twitter PythonDescription
tags: twitter
Python Public Domain 21 Nov 2009 7 years, 5 months ago