I hereby claim:
- I am nazavode on github.
- I am nazavode (https://keybase.io/nazavode) on keybase.
- I have a public key whose fingerprint is 74C9 67CD E139 0E80 0521 33A0 51E3 130F 9AD6 20D7
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
# | |
# Copyright 2015 Federico Ficarelli | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
# -*- coding: utf-8 -*- | |
import pytest | |
import timeit | |
# from duga import * | |
@pytest.fixture | |
def domain(): |
I hereby claim:
To claim this, I am signing this object:
class AstNode(object): | |
pass | |
class Expression(AstNode): | |
pass | |
class BinOp(AstNode): | |
pass | |
class Add(BinOp): |
*.o |
# -*- coding: utf-8 -*- | |
from collections import namedtuple, Mapping | |
__all__ = ['defaultuple'] | |
def defaultuple(typename, field_names, default_values=()): | |
""" Build a new `namedtuple` type with optional default values that | |
can be specified as positional or keyword arguments. |
Amazing projects based on async/await features:
arq
- Fast job queuing and RPC in python with asyncio, redis and msgpack (https://github.com/samuelcolvin/arq)aiopubsub
- Simple pubsub pattern for asyncio applications (https://github.com/qntln/aiopubsub)aioredis
- asyncio (PEP 3156) Redis support (https://github.com/aio-libs/aioredis)aioamqp
- AMQP implementation using asyncio (https://github.com/Polyconseil/aioamqp)asynqp
- An AMQP library for asyncio (https://github.com/benjamin-hodgson/asynqp)uvloop
- Ultra fast implementation of asyncio event loop on top of libuv (https://github.com/MagicStack/uvloop)sqlalchemy_aio
- Asyncio strategy for SQLAlchemy (https://github.com/RazerM/sqlalchemy_aio)curio
- Curio - The coroutine concurrency library (https://github.com/dabeaz/curio)def attach(sig, frame): | |
import pdb | |
pdb.Pdb().set_trace(frame) | |
if __name__ == '__main__': | |
import signal | |
signal.signal(signal.SIGUSR1, attach) | |
# ... | |
# kill -USR1 <pid> |
*.dot | |
.venv |
FROM ubuntu:latest | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get -y update | |
RUN apt-get -y install apt-utils | |
RUN apt-get -y upgrade | |
RUN apt-get -y install build-essential python git curl nano | |
RUN apt-get clean | |
RUN useradd -ms /bin/bash spack |