Skip to content

Instantly share code, notes, and snippets.

Dear Sir or Madam,

I have continued to read about the project and I have found some problems in the most recent study by Davenport.

Please note their first assumption on page 3 of the report. It reads as follows: "All Non-Ballpark (i.e. Retail, Residential, Hotel, Office, Parking, etc.) improvements will be privately financed by the Developer." Underneath this, they repeat, underline, and emphasize their first assumption: "No allowances have been made with respect to development incentives."

Their second assumption contains the first mistake made in the compilation of their report. They appear to have misunderstood the 2009 ERA report. Davenport's study states:

"In conducting our analysis, Davenport has extrapolated the following assumptions from the original 2009 Era Report:

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@bennylope
bennylope / custom_backends.py
Created March 11, 2014 20:32
Extending Django Organizations backends. Use mixin custom functionality to override default backends using your own application. This example takes an optional `connection` argument and passes it to `send_mail`.
from organizations.backends.defaults import RegistrationBackend, InvitationBackend
class SendMailMixin(object):
def _send_email(self, user, subject_template, body_template,
sender=None, connection=None, **kwargs):
"""Utility method for sending emails to new users"""
if sender:
from_email = "%s %s <%s>" % (sender.first_name, sender.last_name,
@bennylope
bennylope / djcasing.py
Created April 16, 2014 00:12
Apply the `case_insenstive` Django view decorator if you have URLs which should match regardless of case, but you don't want those URLs hanging out there when a user visits.
import string
from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect
def case_insensitive(func, case='lower', code=301):
"""
Django view function decorator which can enforce the case of a URL path by
redirecting to the properly cased URL. This *allows* for case insensitive
matches while ensuring that only a commonly cased-URL is used and seen.
@bennylope
bennylope / ansible.yml
Created April 30, 2014 00:35
Deployment w/ Capistrano style deployments with Ansible & Capistrano
---
- name: Deploy new site release
user: deployer
hosts: all
tasks:
- name: Fetch repo updates
git: >
repo=git@github.com:my/repo.git
# If pylibmc exists within requirements, use vendored libmemcached.
if (grep -Eiq "\s*pylibmc" requirements.txt) then
echo "-----> Noticed pylibmc. Bootstrapping libmemcached."
cd .heroku
if [ -d "vendor/lib/sasl2" ]; then
export LIBMEMCACHED=$(pwd)/vendor
else
# Download and extract libmemcached into target vendor directory.
curl -s -L -o tmp-libmemcached.tar.gz $VENDORED_MEMCACHED
@bennylope
bennylope / heroku.sh
Last active August 31, 2015 14:01
A script to chain Heroku commands for deploying Django projects
STAGINGAPP=staging-app-name
PRODUCTIONAPP=production-app-name
case "$1" in
staging)
APPNAME=$STAGINGAPP
;;
production)
APPNAME=$PRODUCTIONAPP
;;
@bennylope
bennylope / pr.md
Last active August 29, 2015 14:14 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@bennylope
bennylope / prepend.sh
Created April 6, 2015 22:34
Insertion shell script for prepending text to a file
#!/usr/bin/env sh
#
# Prepend the text from file in argument $1 to file in argument $2
#
#
# Usage, inserting license front matter into all Python files in a directory,
# including subdirectories:
#
# find . -name "*.py" -print0 | xargs -0 -n 1 ./prepend.sh frontmatter.txt