Just a test gist...
This file contains hidden or 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 django.views.generic.base import TemplateResponseMixin | |
from django.shortcuts import get_object_or_404 | |
from django.http import Http404 | |
from leaguejam.apps.menus.manage_org import manage_org_menu | |
from leaguejam.apps.accounts.models import Org | |
class TemplateWithContextMixin(TemplateResponseMixin): | |
""" | |
Class Based view that stores a `custom_context` property that extends |
This file contains hidden or 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 leaguejam.apps.manage.org.views import OrgContextMixin | |
from leaguejam.apps.manage.org.participants.forms import ParticipantSearchForm | |
from django.views.generic.list import ListView, MultipleObjectMixin | |
from django.views.generic.edit import FormMixin | |
from django.db.models import Q | |
import re | |
class FormMixinGET(FormMixin): |
This file contains hidden or 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
Traceback (most recent call last): | |
File "/usr/sbin/xm", line 8, in <module> | |
from xen.xm import main | |
File "/usr/src/xen-3.3.0/dist/install/usr/lib64/python/xen/xm/main.py", line 56, in <module> | |
File "/usr/src/xen-3.3.0/dist/install/usr/lib64/python/xen/util/acmpolicy.py", line 31, in <module> | |
File "/usr/src/xen-3.3.0/dist/install/usr/lib64/python/xen/util/xsm/acm/acm.py", line 39, in <module> | |
File "/usr/src/xen-3.3.0/dist/install/usr/lib64/python/xen/xend/XendOptions.py", line 483, in instance | |
File "/usr/src/xen-3.3.0/dist/install/usr/lib64/python/xen/xend/XendOptions.py", line 139, in __init__ | |
File "/usr/src/xen-3.3.0/dist/install/usr/lib64/python |
This file contains hidden or 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 | |
""" | |
A quick tool to output the number of people on a site | |
using the chartbeat api and the python requests library | |
Useful for GeekTool and other visualization tools | |
""" | |
import requests |
This file contains hidden or 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
Parent-child pull-downs | |
======================= | |
I need a way to generate a set of pulldowns that can populated based on what's selected in the parent. | |
Required Functionality | |
---------------------- | |
- can be initially populated with the existing value | |
- assumes unique id's at every level (not going to cater to that kinda craziness) |
- one
- two
- three
This file contains hidden or 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 base64 import b64encode | |
from hashlib import sha1 | |
import hmac | |
def hash_signature(url, association_id, secret_access_key, session_id=None): | |
""" | |
Process from Membersuite Docs: http://bit.ly/2eSIDxz | |
""" |
OlderNewer