Skip to content

Instantly share code, notes, and snippets.

The lot of an agent of the Time Patrol is agony, and the agony is always
self-inflicted. Normal men see injustice and work to cure it, or at least
rail against the gods. But an agent must cope with knowing that it is
within his power to make a difference, but *he dare not act*. For how
tenuous is the thread of human existence! How terrible the consequences
of mistakes-- and he *will* make mistakes! To cite the mildest of examples:
Beethoven's magnificent tenth symphony exists now only in the Patrol archives
and every attempt to reintroduce it to society has failed. The universe tends
towards entropy, toward apathy, toward despair, and our brief attempts to
light a candle amidst the darkness are almost laughable. Why then do we
var ReverseHttpAccessPoint = "/connect";
function encode_utf8(s) {
return unescape(encodeURIComponent(s));
}
function decode_utf8(s) {
return decodeURIComponent(escape(s));
}
#include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
PG_MODULE_MAGIC;
MODULES = pltestlang
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
CREATE FUNCTION pltestlang_call_handler() RETURNS language_handler
AS 'filename'
LANGUAGE C;
CREATE LANGUAGE pltestlang
HANDLER pltestlang_call_handler;
CREATE OR REPLACE FUNCTION sum_ints(integer, integer)
RETURNS integer AS
$BODY$
BEGIN
# nginx config
server {
listen 80;
server_name ffmlsearch.inklesspen.com;
location / {
proxy_pass http://127.0.0.1:5020/;
}
}
class BaseController(WSGIController):
def __call__(self, environ, start_response):
"""Invoke the Controller"""
# WSGIController.__call__ dispatches to the Controller method
# the request is routed to. This routing information is
# available in environ['pylons.routes_dict']
# setup connection here. maybe store it in envion
try:
var foo = function() {
var funcs = [];
for (var i=0; i < 5; i++) {
funcs[i] = function() {alert("The number is " + i);};
}
return funcs
};
var f = foo()
f[0](); // You will expect this to show a box with 0
f[4](); // And this to show a box with 4. But they both show 5.
APP_CONFIG = "/path/to/production.ini"
from paste.deploy import loadapp
wsgi_app = loadapp("config:" + APP_CONFIG)
-record (user, {username, password}).
-record (tilekey, {username, tilename}).
-record (tile, {tilekey, s3_key, xy, tags=[]}).