I hereby claim:
- I am fabiocerqueira on github.
- I am fabiocerqueira (https://keybase.io/fabiocerqueira) on keybase.
- I have a public key whose fingerprint is 18DC 7FE9 39AC F6EA E0B6 897B 0713 92F3 A0EC 8E06
To claim this, I am signing this object:
| import asyncio | |
| import random | |
| async def slow_action(): | |
| await asyncio.sleep(random.randrange(1, 5)) | |
| async def my_range(n): | |
| i = 0 | |
| while i < n: |
| from types import coroutine | |
| @coroutine | |
| def spam(): | |
| result = yield 'somevalue' | |
| print("Got it:", result) | |
| async def foo(): |
| from bottle import Bottle, response | |
| app = Bottle() | |
| @app.hook('after_request') | |
| def enable_cors(): | |
| response.headers['Access-Control-Allow-Origin'] = '*' | |
| response.headers['Access-Control-Allow-Methods'] = 'PUT, GET, POST, DELETE, OPTIONS' | |
| response.headers['Access-Control-Allow-Headers'] = 'Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token' |
I hereby claim:
To claim this, I am signing this object:
| foo = 23 | |
| def bar | |
| 42 | |
| end | |
| puts bar /foo |
| -r requirements_base.txt | |
| psycopg2==2.6.1 |
| def int2list(n): | |
| out = [] | |
| while n: | |
| n, r = divmod(n, 10) | |
| out.insert(0, r) | |
| return out |
| #!/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() |
| #!/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) |
| """ | |
| 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 |