Skip to content

Instantly share code, notes, and snippets.

View jameskeane's full-sized avatar
🏠
Working from home

James Keane jameskeane

🏠
Working from home
View GitHub Profile
@t-8ch
t-8ch / Makefile
Created January 31, 2018 22:10
minimal mutter application with window management
CFLAGS=$(shell pkg-config --cflags libmutter-1) -Wl,-rpath,/usr/lib/mutter
LDLIBS=$(shell pkg-config --libs libmutter-1)
all: main
@jameskeane
jameskeane / dbgod.py
Created April 17, 2013 18:45
Postgres stored procedures in python.
from inspect import getfullargspec, getsourcelines
type_map = {
int: 'integer'
}
tmpl = """
CREATE FUNCTION {func_name} ({args})
RETURNS {return_t}
AS $$