Skip to content

Instantly share code, notes, and snippets.

0xab91Eb54B72850d1dEbcf3F9Dc7F81B28E19d053
#!/bin/bash
#
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box
# http://wildfish.com
# add the ubuntu gis ppa
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
@MStumpp
MStumpp / DetailViewController.h
Created October 20, 2012 11:56 — forked from anonymous/DetailViewController.h
Simple iOS YouTube App - Use this code to put a list of videos from a YouTube user in your app.
//
// DetailViewController.h
// youtubedemo
//
// Created by Your Name on 4/24/12.
// Copyright (c) 2012 Company Name. All rights reserved.
//
#import <UIKit/UIKit.h>
@MStumpp
MStumpp / chain.js
Created October 3, 2012 23:28
chain.js - add function chaining capability
function chainify(clazz) {
var Chain = function() {};
Chain.prototype.exec = function() {
return this.c_process();
};
Chain.prototype.c_chain = function(func, args) {
if (!func)
throw new Error('Provide a function to be chained.');