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:
| foo = 23 | |
| def bar | |
| 42 | |
| end | |
| puts bar /foo |
I hereby claim:
To claim this, I am signing this object:
| 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' |
| from types import coroutine | |
| @coroutine | |
| def spam(): | |
| result = yield 'somevalue' | |
| print("Got it:", result) | |
| async def foo(): |
| 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: |
| import asyncio | |
| from collections import namedtuple | |
| from functools import wraps | |
| tasks = [] | |
| loop = asyncio.get_event_loop() | |
| PeriodicTask = namedtuple('PeriodicTask', ['task', 'interval', 'start']) |
| import asyncio | |
| from collections import namedtuple | |
| from functools import wraps | |
| tasks = [] | |
| loop = asyncio.get_event_loop() | |
| PeriodicTask = namedtuple('PeriodicTask', ['task', 'interval', 'start']) |
| import sys | |
| import asyncio | |
| from PyQt5.QtWidgets import QApplication | |
| from quamash import QEventLoop | |
| app = QApplication(sys.argv) | |
| loop = QEventLoop(app) | |
| asyncio.set_event_loop(loop) |
| import asyncio | |
| import sys | |
| import signal | |
| import logging | |
| from PyQt5.QtWidgets import QApplication | |
| from quamash import QEventLoop | |
| from PyIRC.signal import event | |
| from PyIRC.io.asyncio import IRCProtocol |
| import asyncio | |
| import sys | |
| import logging | |
| from pathlib import Path | |
| from PyQt5 import QtWidgets, uic | |
| from quamash import QEventLoop | |
| from PyIRC.signal import event | |
| from PyIRC.io.asyncio import IRCProtocol |