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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| epub_to_opds_entry.py | |
| Created by Keith Fahlgren on Tue Apr 5 21:21:02 PDT 2011 | |
| Copyright (c) 2011 Threepress. All rights reserved. | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without |
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
| def decorates(dec): | |
| def handler(*args, **kwargs): | |
| if len(args) == 1 and callable(args[0]): | |
| func = args[0] | |
| return dec(func) | |
| else: | |
| def wrapper(func): | |
| return dec(func, *args, **kwargs) | |
| return wrapper | |
| return handler |
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
| # /etc/bash/bashrc | |
| # | |
| # This file is sourced by all *interactive* bash shells on startup, | |
| # including some apparently interactive shells such as scp and rcp | |
| # that can't tolerate any output. So make sure this doesn't display | |
| # anything or bad things will happen ! | |
| # Test for an interactive shell. There is no need to set anything |
NewerOlder