This file contains hidden or 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
class ParanoidContextProxy(object): | |
""" | |
This is a poor-man's proxy for a context instance. | |
Make sure template rendering stops immediately on a KeyError. | |
""" | |
def __init__(self, context): | |
self.context = context | |
def __getitem__(self, key): |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import time | |
import sublime_plugin | |
class TimestampCommand(sublime_plugin.EventListener): | |
"""Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`, | |
`date` and `time` |
This file contains hidden or 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
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
- Symfony2 - A framework comprised of individual components.
- Zend Framework 2 - Another framework comprised of individual components.
- Laravel 4 - A simple PHP framework.
- Lithium - Another framework of components.