Skip to content

Instantly share code, notes, and snippets.

# How to use PG Point type in SQAlchemy
#
# Most of the code comes from here:
# http://initd.org/psycopg/docs/advanced.html#adapting-new-types
import re
import sqlalchemy
import psycopg2
from psycopg2.extensions import adapt, register_adapter, AsIs
@michaelp85
michaelp85 / ExtExpressionEngineAuthDB.php
Created February 6, 2013 02:30
MediaWiki external authentication plugin interface to ExpressionEngine 2.2+
<?php
/**
* External authentication plugin interface to ExpressionEngine 2.2+
*
* Basic setup:
* - Save this file into extensions/ExtExpressionEngineAuthDB/ExtExpressionEngineAuthDB.php
* - Insert LocalSettings.php requirements, see below for what they are.
*
* This extension is a derivation of http://www.mediawiki.org/wiki/Extension:ExtAuthDB
*