This is only a test.
This file contains 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
#!/usr/bin/env python | |
""" | |
Usage:: | |
pip install gitpython | |
cd <repo> | |
analyze-repo | |
""" | |
from __future__ import absolute_import, division, print_function, unicode_literals |
This file contains 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
INSTALLED_APPS = ( | |
# ... | |
) | |
# Skip migrations for tests | |
MIGRATION_MODULES = { | |
# Assumes that all values in INSTALLED_APPS are simply a package containing | |
# an application, not an application configuration class. | |
app.split('.').pop(): '{0}.migrations_not_used_in_tests'.format(app) for app in INSTALLED_APPS | |
} |
I hereby claim:
- I am benspaulding on github.
- I am benspaulding (https://keybase.io/benspaulding) on keybase.
- I have a public key whose fingerprint is 20B3 BFB1 AD12 033F 0774 85F5 970F 8167 377B 92A4
To claim this, I am signing this object:
This file contains 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
diff --git a/gift-4-u.txt b/gift-4-u.txt | |
index ca36d0a..986e9c4 100644 | |
--- a/gift-4-u.txt | |
+++ b/gift-4-u.txt | |
@@ -1,2 +1,2 @@ | |
-I am sending this because you love patch files. :) | |
+I am sending this because you *really* love patch files. :) | |
This file contains 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 c693dfaa46218537fb66e6e30638ee81f5374fac Mon Sep 17 00:00:00 2001 | |
From: Ben Spaulding <ben@benspaulding.com> | |
Date: Fri, 20 Mar 2009 00:22:21 -0500 | |
Subject: [PATCH] Created ``yes`` filter in default filters. | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=utf-8 | |
Content-Transfer-Encoding: 8bit | |
I cannot count the times that I wanted to output a string if | |
the value was true, but output nothing otherwise. This leads |
This file contains 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 99ca027e7f09c5a7dfd0e6804cc90325c223ffea Mon Sep 17 00:00:00 2001 | |
From: Ben Spaulding <ben@benspaulding.com> | |
Date: Fri, 20 Mar 2009 00:17:14 -0500 | |
Subject: [PATCH] Created ``or_nothing`` filter in default filters. | |
The same thing can be accomplished with the ``default`` | |
filter and an empty argument, but that feels hacky and | |
it looks dirty, too. | |
--- | |
django/template/defaultfilters.py | 11 +++++++++++ |
This file contains 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
#!/bin/sh | |
echo Starting lighttpd | |
# What does this do? | |
exec 2>&1 | |
# Is there a reason for doing this rather than ``exec /etc/init.d/nginx start`` ? | |
exec /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf |
This file contains 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
class Foo(object): | |
bar = ['this', 'that'] | |
class Baz(Foo): | |
# What is the best way to make the bar attr equal to the super class’s | |
# bar attr with some more items appended to the list? | |
# | |
# This obviously doesn't work, but it is the sort of thing I want. |
This file contains 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
# Middlware munging in staging settings.py | |
REMOVED_MIDDLEWARE_CLASSES = ( | |
'django.middleware.cache.UpdateCacheMiddleware', | |
'django.middleware.cache.FetchFromCacheMiddleware', | |
) | |
ORIGINAL_MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES | |
MIDDLEWARE_CLASSES = [] | |
for mwc in ORIGINAL_MIDDLEWARE_CLASSES: | |
if not mwc in REMOVED_MIDDLEWARE_CLASSES: | |
MIDDLEWARE_CLASSES.append(mwc) |
OlderNewer