Skip to content

Instantly share code, notes, and snippets.

View inean's full-sized avatar

Carlos Martín inean

  • Independent Developer
  • Spain
View GitHub Profile
import functools
def plivo_validate(func):
"""validate a request from plivo
returns true if the request passes validation, false if not
"""
@functools.wraps(func)
def wrapper(handler, *args, **kwargs):
# compute full URL without query elements
@inean
inean / compositor.py
Created May 29, 2012 18:00
A class to interact with Harmattan compositor
from os import getpid
class HarmattanCompositor(object):
# Atoms
XA_ATOM = 4
XA_STRING = 31
XA_WINDOW = 33
# Contants