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/python | |
| # -*- coding : utf-8 -*- | |
| """ | |
| @author: Diogenes Augusto Fernandes Herminio <[email protected]> | |
| """ | |
| from abc import ABCMeta | |
| #Abstract Factory | |
| class StandardFactory(object): |
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/python | |
| # -*- coding : utf-8 -*- | |
| """ | |
| @author: Diogenes Augusto Fernandes Herminio <[email protected]> | |
| """ | |
| # Product | |
| class Churrasco(object): | |
| def __init__(self): | |
| self.fala = None |
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/python | |
| # -*- coding : utf-8 -*- | |
| """ | |
| @author: Diogenes Augusto Fernandes Herminio <[email protected]> | |
| """ | |
| # Director | |
| class Director(object): | |
| def __init__(self): | |
| self.builder = None |
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
| ++++++++++[>+++++++>++++++++++>+++++++++++>++++++++++++>+++<<<<<-]>+++.>>>>++.<<<++++++++.>+.+++++++.<-------.>>>.<+.<-------.++++++.>>+.<<<<<+++++++++++. |
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
| from django.template.defaultfilters import slugify | |
| def slugify_file_name(filename): | |
| ''' | |
| Slugify a file name | |
| Use case: | |
| >>> slugify_file_name('/home/diofeher/R5drgébvśdv_SVSvxpoj x,se.jpg') | |
| u'/home/diofeher/r5drgebvsdv_svsvxpoj-xse.jpg' | |
| ''' |
NewerOlder