I hereby claim:
- I am cybojenix on github.
- I am cybo (https://keybase.io/cybo) on keybase.
- I have a public key ASDQ6YvX8OzCb8VR6CsmFj0eXNaFUEtYgVc4JDqoxaOSpAo
To claim this, I am signing this object:
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_style = space |
[user] | |
name = Anthony King | |
email = [email protected] | |
signingKey = 52F5423043534D7FA60ABA3E407508242BF5C605 | |
[color] | |
ui = auto | |
[push] | |
default = simple |
from django.core.serializers.json import Serializer as JsonSerializer | |
# because of the way serializers are registered, we need to import the Deserializer | |
from django.core.serializers.json import Deserializer # noqa | |
# There's a bug in Django currently, and it doesn't look like it'll be fixed till Django 2.1. | |
# https://code.djangoproject.com/ticket/24607 | |
# Changes are based on https://github.com/django/django/pull/8370 |
I hereby claim:
To claim this, I am signing this object:
while :; do | |
options="e" | |
for option in a l F; do | |
options="$options$(python -c "import random; print(random.choice(('','$option')))")" | |
done | |
sl -"$options" | |
done |
class OrderForm(forms.ModelForm): | |
class Meta: | |
model = Order | |
fields = ['book_title', 'customer', 'internal_design', 'paid', 'start_date'] | |
campaign = forms.ModelMultipleChoiceField(queryset=Campaign.objects.all()) | |
def _save_m2m(self): | |
super()._save_m2m() | |
campaign = Campaign.objects.get(pk=self.cleaned_data['campaign']) |
{ | |
"Google": { | |
"url": "https://google.co.uk" | |
} | |
} |
# middleware to add GNU Terry Pratchett to django | |
# point to this class in your MIDDLEWARE_CLASSES | |
class GNUTerryPratchett(object): | |
@staticmethod | |
def process_response(request, response): | |
response['X-Clacks-Overhead'] = 'GNU Terry Pratchett' | |
return response |
""" | |
Copyright (C) 2015 Fastboot Mobile, LLC. (http://fastbootmobile.com) | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
export FROM=android-5.0.1_r1 | |
export TO=android-5.0.2_r1 | |
export DIFF="`pwd`/diff" | |
rm -f $DIFF | |
repo forall -c ' | |
d=$(git diff $FROM $TO) | |
if [ "$d" ]; then | |
echo -e "#\n##\n# diffing $REPO_PROJECT\n##\n#" >> $DIFF |