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 import template | |
import datetime | |
register = template.Library() | |
@register.filter("timeago") | |
def timeago(value, timestamp = datetime.datetime.utcnow(), suffix = "ago"): | |
""" | |
Returns a fuzzy and friendly datestring describing the difference between two dates. | |
Based on Rails' timeago helper and Ryan McGeary's jQuery.timeago plugin. |
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
application: nateandmel-racklyeft-com | |
version: 1 | |
runtime: python | |
api_version: 1 | |
derived_file_type: | |
- python_precompiled | |
builtins: | |
- appstats: on |
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
# Pull base image | |
FROM resin/rpi-raspbian:wheezy | |
MAINTAINER Nathan Racklyeft <[email protected]> | |
# Install dependencies | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
build-essential \ | |
git \ | |
python \ |