Based on the Treemap example.
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 | |
import logging | |
import re | |
from gevent import monkey, spawn | |
from gevent.pool import Pool | |
monkey.patch_all() | |
from redis import Redis | |
import requests |
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 funfactory.middleware import LocaleURLMiddleware | |
from django.conf import settings | |
class ExceptionalLocaleURLMiddleware(LocalURLMiddleware): | |
""" | |
Replacement for funfactory.middleware.LocaleURLMiddleware that supports excluding | |
specific paths from getting redirected if a lang param is present in the request. | |
""" | |
def process_request(self, request): | |
if 'lang' in request.GET and request.path in getattr( |
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
import json | |
from django.db.models import Q | |
from rna.models import Release, Note | |
def dump_release_notes_map(filename='release-notes-map.json'): | |
"used on the legacy side with the legacy models" | |
with open(filename, 'w') as f: | |
json.dump( | |
[(release.id, list( |
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
{% if show_mobile %} | |
<small class="download-other os_android"> | |
<a href="https://support.mozilla.org/kb/will-firefox-work-my-mobile-device">{{ _('Supported Devices') }}</a> | | |
<<<<<<< HEAD | |
<a href="{{ product_url('mobile', 'notes', build) }}">{{ _('What’s New') }}</a> | | |
<a href="/en-US/legal/privacy/firefox.html">{{ _('Privacy') }}</a> | |
======= | |
{% if build %} | |
<a href="/en-US/mobile/{{ build }}/notes">{{ _('What’s New') }}</a> | | |
{% else %} |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
</style> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<svg width=960px height=500px> | |
<g transform='translate(166, 108)'> | |
<circle cx=142 cy=10 r=30 fill='#25B0B0'> |
I hereby claim:
- I am jgmize on github.
- I am jgmize (https://keybase.io/jgmize) on keybase.
- I have a public key whose fingerprint is 879B F8F5 CE76 1CD2 BFD6 F2E9 DBB1 76AA 9894 5BFE
To claim this, I am signing this object:
OlderNewer