Skip to content

Instantly share code, notes, and snippets.

View bmacauley's full-sized avatar

Brian Macauley bmacauley

View GitHub Profile
@bmacauley
bmacauley / skel_module4.py
Created March 28, 2013 13:19
module skeleton
#!/usr/bin/env python
# coding: utf-8
"""
package.module
~~~~~~~~~~~~~
A description which can be long and explain the complete
functionality of this module even with indented code examples.
Class/Function however should not be documented here.
@bmacauley
bmacauley / skel_module4.py
Last active December 15, 2015 12:49
module skeleton
#!/usr/bin/env python
# coding: utf-8
"""
package.module
~~~~~~~~~~~~~
A description which can be long and explain the complete
functionality of this module even with indented code examples.
Class/Function however should not be documented here.
@bmacauley
bmacauley / skel_module3.py
Last active December 15, 2015 12:49
module skeleton, long version alternate
#!/usr/bin/env python
# -*- coding: ascii -*-
"""
package.module
~~~~~~~~~~~~~
A description which can be long and explain the complete
functionality of this module even with indented code examples.
Class/Function however should not be documented here.
@bmacauley
bmacauley / skel_module1.py
Last active December 15, 2015 12:49
module skeleton, short version
#!/usr/bin/env python
"""
Module Docstring
"""
#
## Code goes here.
#
@bmacauley
bmacauley / skel_module2.py
Last active December 15, 2015 12:49
module skeleton, long version
#!/usr/bin/env python
# -*- coding: ascii -*-
"""
Module Docstring
Docstrings: http://www.python.org/dev/peps/pep-0257/
"""
__author__ = 'Joe Author ([email protected])'
__copyright__ = 'Copyright (c) 2009-2010 Joe Author'
@bmacauley
bmacauley / fabric local bug
Last active July 15, 2016 14:07
fabric...local() bug?
# not working
def svn_commit():
"""commit any changes to svn"""
mod = local('svn st -q',capture=True)
if mod != '':
print "Modified:"
print mod
#working