I hereby claim:
- I am mlissner on github.
- I am mlissner (https://keybase.io/mlissner) on keybase.
- I have a public key whose fingerprint is E64F 32B9 B2CE 993E 6D2A 60A5 DE79 459C D047 ACFE
To claim this, I am signing this object:
| from datetime import datetime | |
| from datetime import timedelta | |
| def queryset_generator(queryset, chunksize=1000): | |
| """ | |
| Iterate over a Django Queryset ordered by the primary key | |
| This method loads a maximum of chunksize (default: 1000) rows in its | |
| memory at the same time while django normally would load all rows in its | |
| memory. Using the iterator() method only causes it to not preload all the |
| asdf |
| count | count | |
| ---------+-------- | |
| 2590457 | 395389 |
| import datetime | |
| print "Now killing strftime." | |
| class CleanDateTime(datetime.datetime): | |
| def strftime(self, format): | |
| raise NotImplemented( | |
| "Strftime doesn't support dates prior to 1900 and as a " | |
| "consequence CourtListener nukes them from the standard library. " |
| import datetime | |
| import warnings | |
| class CleanDateTime(datetime.datetime): | |
| def strftime(self, *args, **kwargs): | |
| # warnings.warn('strftime is deprecated', DeprecationWarning, | |
| # stacklevel=2) | |
| return super(CleanDateTime, self).strftime(*args, **kwargs) |
I hereby claim:
To claim this, I am signing this object:
| start_workers () { | |
| echo "Starting workers with command: " | |
| echo " $CELERYD_MULTI start $CELERYD_NODES $DAEMON_OPTS \ | |
| --pidfile=\"$CELERYD_PID_FILE\" \ | |
| --logfile=\"$CELERYD_LOG_FILE\" \ | |
| --loglevel=\"$CELERYD_LOG_LEVEL\" \ | |
| --cmd=\"$CELERYD\" $CELERYD_OPTS" | |
| $CELERYD_MULTI start $CELERYD_NODES $DAEMON_OPTS \ | |
| --pidfile="$CELERYD_PID_FILE" \ | |
| --logfile="$CELERYD_LOG_FILE" \ |
| from django.contrib import admin | |
| from alert.donate.models import Donation | |
| from alert.userHandling.models import UserProfile | |
| class DonorInline(admin.TabularInline): | |
| model = UserProfile.donation.through | |
| max_num = 1 | |
| raw_id_fields = ('donation',) |
| def process_dwolla_transaction_status_callback(request): | |
| if request.method == 'POST': | |
| data = simplejson.loads(request.body) | |
| logger.info('Dwolla transaction status callback triggered with ' | |
| 'data: %s' % data) | |
| if check_dwolla_signature( | |
| request.META['HTTP_X_DWOLLA_SIGNATURE'], | |
| request.body): | |
| # Statuses can be found at: | |
| # https://developers.dwolla.com/dev/pages/statuses |
| // ==UserScript== | |
| // @name Jureeka | |
| // @namespace http://www.jureeka.org | |
| // @description Turns legal citations in webpages into hyperlinks that direct you to online legal source material. | |
| // ==/UserScript== | |
| // $Id: jureeka.js 1256 2012-02-13 19:06:16Z imad $ | |
| /* | |
| Warnings: |