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
# django-wiki hook for django-cms | |
from django.conf.urls.defaults import patterns | |
from cms.app_base import CMSApp | |
from cms.apphook_pool import apphook_pool | |
from django.utils.translation import ugettext_lazy as _ | |
from wiki.urls import get_pattern as get_wiki_pattern | |
from django_notify.urls import get_pattern as get_notify_pattern | |
class WikiApphook(CMSApp): |
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
echo 4 10 2 38 39 4 39 4 10 4 44 4 4 38 6 38 38 6 11 32 4 11 52 14 39 \ | |
38 38 10 40 40 4 38 38 38 | fmt -1 | sort | uniq -c | sort -nr |
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/python | |
import os, sys | |
from optparse import OptionParser | |
from zencoder import Zencoder | |
DEBUG=False | |
if os.environ.get('ZENCODER_API_KEY'): | |
ZENCODER_API_KEY=os.environ.get('ZENCODER_API_KEY') | |
elif DEBUG: |
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
// cellRadius is the distance from center to vertex or length of an edge | |
// longSpan is the long side of the triangle | |
// shortSpan is short side | |
float[][] XM = new float[][] { { 1 / (2*longSpan), -1 / cellRadius }, { 1 / longSpan, 0 } }; | |
float[][] YM = new float[][] { { 1 / (2*longSpan), 1 / cellRadius }, { -1 / (2*longSpan), 1 / cellRadius } }; | |
HVector pixel2hex(PVector pv) { | |
int n; | |
PVector mj = floorDot(pv, matrixXM); |
NewerOlder