I hereby claim:
- I am fdemmer on github.
- I am fdemmer (https://keybase.io/fdemmer) on keybase.
- I have a public key ASCiBr9zi9OQD16UTcnY22aXZV6tXFeGaktjSocFWUD0_Qo
To claim this, I am signing this object:
| # -*- coding: utf-8 -*- | |
| """ | |
| Very primitive simulation of a caching cdn like cloudfront. | |
| """ | |
| import logging | |
| import requests | |
| import sys | |
| from concurrent.futures import ThreadPoolExecutor | |
| from functools import partial | |
| from urlparse import urlunparse |
| # -*- coding: utf-8 -*- | |
| from marshmallow import Schema, fields | |
| from django.utils.functional import cached_property | |
| class ParameterMixin(object): | |
| """ | |
| Mixin for a View-like class for URL parameter parsing and validation using | |
| marshmallow (works well with Django views or DRF ViewSets). |
I hereby claim:
To claim this, I am signing this object:
| server { | |
| listen *:80 default; | |
| server_name _; | |
| location / { | |
| client_max_body_size 1G; | |
| proxy_pass http://127.0.0.1:8000; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; |
| # -*- coding: utf-8 -*- | |
| import logging | |
| import os | |
| from tempfile import gettempdir | |
| import boto3 | |
| import botocore | |
| from django.db.backends.sqlite3.base import DatabaseWrapper | |
| log = logging.getLogger(__name__) |
| # example usage: | |
| # | |
| # {% if request.LANGUAGE_CODE == 'de' %} | |
| # <a href="{% switch_language 'en' %}">English</a> | |
| # {% else %} | |
| # <a href="{% switch_language 'de' %}">Deutsch</a> | |
| # {% endif %} | |
| # | |
| @register.simple_tag(takes_context=True) |
| import logging | |
| import pytz | |
| import six | |
| import tzcron | |
| from kombu.utils import cached_property | |
| from pytz import AmbiguousTimeError, NonExistentTimeError | |
| from celery import schedules | |
| from celery.utils.time import is_naive |
| MIT License | |
| Copyright (c) Florian Demmer | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| Nougat | Nuss | Marzipan | Kaffee | Vanille | Champ. | Rum | Vogelb. | Kirsch | |
|---|---|---|---|---|---|---|---|---|---|
| Bach | x | x | x | ||||||
| Millenium | x | x | |||||||
| Dietrich | x | x | x | ||||||
| Fürst | x | x | x | ||||||
| Doppler | x | x | x | ||||||
| Lodron | x | x | x | ||||||
| Schilling | x | x | x |