![dynamics of mob programming][mobprog.svg]
- Make sure you have [whatchexec][] installed
- Checkout the working branch
<?php | |
/** | |
* Calculate your age | |
* | |
* @param DateTime $birthday Your birthday | |
* | |
* @return int | |
*/ | |
function calculateAge(DateTime $birthday) { |
I use it. If you don't, read these:
You can still ignore semicolons, but know that ASI is a syntactic error correction procedure,
{% if is_paginated %} | |
<nav id="pagination"> | |
{% if page_obj.has_previous %} | |
<a href="?page={{ page_obj.previous_page_number }}">previous page</a> | |
{% endif %} | |
{% for page in page_obj.paginator.page_range %} | |
{% if page >= page_obj.number|add:"-2" and page < page_obj.number %} | |
<a href="?page={{ page }}">{{ page }}</a> | |
{% endif %} | |
{% ifequal page_obj.number page %} |
# -*- encoding: utf-8 -*- | |
# Usage: | |
# urlpatterns += patterns('', | |
# route(r'^$', GET='getview', POST='postview', name='viewname'), | |
# ) | |
# | |
from django.http import Http404 | |
from django.core.urlresolvers import RegexURLPattern, get_callable | |
def discover_view(view, prefix=''): |