Skip to content

Instantly share code, notes, and snippets.

@minikomi
minikomi / persona.go
Last active December 11, 2015 06:59
mozilla persona test
package main
import (
"encoding/json"
"fmt"
"github.com/gorilla/sessions"
"io/ioutil"
"log"
"net/http"
"net/url"
@sahid
sahid / hook.py
Created July 5, 2011 10:39
A simple way to log all of indexes used by the application
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Sahid Orentino Ferdjaoui
import logging
import hashlib
from google.appengine.api import memcache
from google.appengine.api import apiproxy_stub_map
@mdornseif
mdornseif / replication.py
Created May 1, 2011 20:35
Replication of AppEngine & Minimal implementation for generating zipfiles. See also http://mdornseif.github.com/2011/05/01/writing-zipfiles-to-blobstore.html
#!/usr/bin/env python
# encoding: utf-8
"""
replication.py - extport data to external systems
Created by Maximillian Dornseif on 2011-05-01.
Copyright (c) 2011 HUDORA. All rights reserved.
"""
from __future__ import with_statement
import urllib2, urllib
class RecaptchaResponse(object):
def __init__(self, is_valid, error_code=None):
self.is_valid = is_valid
self.error_code = error_code
def submit (recaptcha_challenge_field,
recaptcha_response_field,
private_key,