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 flask import get_template_attribute | |
from jinja2 import Template | |
class MacroFor(object): | |
""" Use this as a mixin | |
e.g. | |
class ListItemBasic(MacroFor): | |
def __init__(self, listitem): | |
self.title = listitem.title |
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
``` | |
class Ticket | |
include DataMapper::Resource | |
if Rails::DataMapper.configuration.repositories["development" || "test" || "production"]["ticketengine"] | |
def self.default_repository_name | |
:ticketengine | |
end | |
end |
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
Ubuntu 11.04 | |
zsh | |
--shell loads | |
/home/qx/.rvm/scripts/initialize:43: bad pattern: (/home/qx/.bash_profile | |
/home/qx/.rvm/scripts/initialize:43: bad pattern: (/home/qx/.bash_profile | |
% ➜ ~ rvm -v | 8:53:11 | | |
/home/qx/.rvm/scripts/initialize:43: bad pattern: (/home/qx/.bash_profile | |
rvm 1.6.25 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/] |
NewerOlder