This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"font_size": 15.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": [72, 79], | |
"tab_size": 4, | |
"translate_tabs_to_spaces": true, | |
"draw_white_space": "all", |