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
| # http://www.nike.com.br/Camisa-Masculina-CBF-I-Brasil-Jogador-252077.html | |
| # https://www.facebook.com/photo.php?v=683981728322039&fref=nf | |
| curl "http://www.nikedigitalsis.com.br/nikeid/_loja/admin/ws/blacklist.aspx?c=builder.callback_text&s=DILMA&sku=575276-703&id_sku=252079&_=1405046222159" |
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 | |
| #-*- coding: utf-8 -*- | |
| from glob import iglob | |
| import re | |
| def get_locale(filename): | |
| locale_re = re.match(r'Resources_(?P<locale>[^\.]+).properties', filename) | |
| if locale_re: | |
| return locale_re.group('locale') |
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 | |
| #-*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import fnmatch | |
| import argparse | |
| import re | |
| try: | |
| import i18n_conf | |
| except: |
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 wabot import WabotApp, reply | |
| app = WabotApp() | |
| @app.handler('group_message', command='!info') | |
| @app.handler('private_message', command='!info') | |
| def info(message, params): | |
| reply("I'm wabot. Your parameter is: %s" % str(params)) | |
| if __name__ == '__main__': |
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
| <?php | |
| function python($code) { | |
| return shell_exec("python -c '$code'"); | |
| } | |
| $python_code = " | |
| def fat(n): | |
| if n == 0: | |
| return 1 |
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
| """ | |
| Demo of the fill function with a few features. | |
| In addition to the basic fill plot, this demo shows a few optional features: | |
| * Multiple curves with a single command. | |
| * Setting the fill color. | |
| * Setting the opacity (alpha value). | |
| """ | |
| import numpy as np |
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 | |
| # -*- coding: utf-8 -*- | |
| from pyparsing import (Keyword, Word, OneOrMore, Optional, CaselessLiteral, | |
| LineEnd, Group, nums) | |
| def robolang(): | |
| andar_token = Keyword("andar", caseless=True) | |
| girar_token = Keyword("girar", caseless=True) |
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 | |
| # -*- coding: utf-8 -*- | |
| import warnings | |
| from rply import ParserGenerator, LexerGenerator, ParsingError | |
| from rply.lexer import LexingError | |
| from rply.token import BaseBox | |
| lg = LexerGenerator() |
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 int2list(n): | |
| out = [] | |
| while n: | |
| n, r = divmod(n, 10) | |
| out.insert(0, r) | |
| return out |
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
| -r requirements_base.txt | |
| psycopg2==2.6.1 |