Skip to content

Instantly share code, notes, and snippets.

View alukach's full-sized avatar
🍊

Anthony Lukach alukach

🍊
View GitHub Profile
@alukach
alukach / admin.py
Last active August 29, 2015 14:12
Intermediate Admin Action
from django.contrib import admin, messages
from django.shortcuts import render
from my_app.models import MyModel
from my_app import forms
class MyModelAdmin(admin.ModelAdmin):
actions = ['my_action']
@alukach
alukach / CALGIS_CITY_AMENITY.geojson
Last active August 29, 2015 14:14
Names and addresses of city amenities including arenas, arts centres, athletic parks, cemeteries, city parks, EMS stations, fire stations, golf courses, hazardous good drops, indoor pools, landfills, leisure centres, off leash dog areas, outdoor pools, police services, public toilets and recycle depots.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alukach
alukach / dogparks.geojson
Last active August 29, 2015 14:14
Calgary Off-Leash Parks and Natural Areas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alukach
alukach / union1.geojson
Created April 15, 2015 01:13
Union Test Files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alukach
alukach / gist:3146699
Created July 19, 2012 20:45 — forked from rolo/gist:1481128
Install Postgres 9.1, PostGIS and create PostGIS template on Ubuntu 11.10 Oneiric Ocelot
#!/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
import math
import random
def getSuccessors(color):
def perm(l, n, str_a, perm_a):
"""Generate every permutation of length `n`, selecting from the
possible values in `l`.
"""
if len(str_a) == n:
return (str_a,) + perm_a
@alukach
alukach / install_makefiles
Created September 12, 2013 07:36
To be used when installing MB-System
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
#--------------------------------------------------------------------
# The MB-system: install_makefiles 5/20/94
# $Id: install_makefiles 2111 2013-06-07 02:28:59Z caress $
#
# Copyright (c) 1993-2013 by
# D. W. Caress (caress@lamont.ldgo.columbia.edu)
# and D. N. Chayes (dale@lamont.ldgo.columbia.edu)
#!/bin/sh
rm /tmp/hma.sh
cat <<INSTALL > /tmp/hma.sh
#!/bin/sh
cd /tmp
mkdir hma
cd hma
cat <<EOF > hma.conf
remote 173.208.32.98 53
client
@alukach
alukach / Preferences.sublime-settings
Created December 5, 2013 20:51
A backup of my SublimeText 2 User Preferences. Copy/Paste these to your User Profile (`Cmd`+`,`)
{
"font_size": 15.0,
"ignored_packages":
[
"Vintage"
],
"rulers": [72, 79],
"tab_size": 4,
"translate_tabs_to_spaces": true,
"draw_white_space": "all",