Skip to content

Instantly share code, notes, and snippets.

@natw
natw / foo.py
Created February 7, 2011 16:08
from jinja2 import Template
source = """
{%- set foo = 'hello' -%}
{%- macro bar(things, oid, attribute) -%}
{%- for thing in things -%}
{%- if thing.offer_id == oid -%}
{{attr thing attribute}}
{%- endif -%}
@natw
natw / .gitignore
Last active August 29, 2015 14:06 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,