Skip to content

Instantly share code, notes, and snippets.

$ pip install -r salt/requirements.txt
Requirement already satisfied (use --upgrade to upgrade): Jinja2 in ./lib/python2.7/site-packages (from -r salt/requirements.txt (line 2))
Downloading/unpacking M2Crypto (from -r salt/requirements.txt (line 3))
Running setup.py egg_info for package M2Crypto
Downloading/unpacking msgpack-python (from -r salt/requirements.txt (line 4))
Running setup.py egg_info for package msgpack-python
Downloading/unpacking PyCrypto (from -r salt/requirements.txt (line 5))
Running setup.py egg_info for package PyCrypto
@blturner
blturner / mkappenginevenv.sh
Created November 15, 2011 20:16 — forked from rmyers/mkappenginevenv.sh
Setup virtual env for appengine
#!/bin/bash
#
# Build a virtual environment suitable for running appengine.
# This uses virtualenvwrapper to make the virtual environment.
# Which you can activate with 'workon appengine'
#
# Everyone loves one-liners!
# Mac one-liner:
# $ curl -s https://raw.github.com/gist/1012769 | bash
#
export WORKON_HOME=$HOME/.virtualenvs
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
source /usr/local/bin/virtualenvwrapper.sh
http://pinboard.in/u:blturner
Dear Sir/Madam
I am Mr.Desmond Kliiss Audit Manager in my bank. In the Kuwait city of Kuwait, and assistance, this is a very confidential proposition for you. On April 21st 1999, A Swedish Oil consultant/contractor with the Benenoise Solid Minerals Corporation, Mr.Soren Anderson made a numbered time (Fixed) Deposit for twelve calendar months, valued at US$8,000,000.00 (Eight Million Dollars only) in my branch.
Upon maturity on November 20th 2003 as his Credit Officer, I sent a routine notification to his forwarding address but got no reply. After a month, we sent a reminder and finally i discovered from his contract employers, the Benenoise Solid Minerals Corporation that Mr.Soren Anderson died on auto accident with his entire family.
Further investigations and all attempts to trace his next of kin was fruitless. Again, I made further investigation and discovered that Mr.Soren Anderson did not declare any kin or relations in all his official documents, including his Bank Deposit paperwork in my Bank.
@register.filter
def exclude_fields(form, field_names):
"""
Returns the fields of a Form excluding the named fields. Usage:
{% for field in form|exclude_fields:"field1,field2,field3" %}
"""
fields = []
if not isinstance(form, BaseForm):
return fields
else:
<li class="formrow formrow_{{ field.name }}{% if errors %} has_errors{% endif %}{% if not field.field.required %} optional{% else %} required{% endif %}">
<label for="{{ field.auto_id }}">{{ field.label }}{% if not field.field.required %}<em> (optional)</em>{% endif %}</label>
{{ errors }}
{{ field }}
<small class="help_text">{{ help_text }}</small>{{ hiddenfields }}
</li>