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
| import inspect | |
| import re | |
| class run_before(object): | |
| """Takes a function, and returns a class/method decorator""" | |
| def __init__(self, func, name_descriminator=r'[^_]+'): | |
| """Initialize the run_before decorator | |
| Takes a func that will be called every time before any of the | |
| classes methods (or a function itself if directly decorated). |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>ofCode</title> | |
| <meta name="google-site-verification" content="mNd96hqqJrfLl0D_QwRfLby5MWWqxHS1pZqqr92aJSQ" / | |
| <!--[if IE]> | |
| <script src="http://assets1.ofcode.org/javascripts/html5.js"></script> | |
| <![endif]--> | |
| % if c.sub_domain == 'paste': |
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
| asdf |
NewerOlder