I hereby claim:
- I am canni on github.
- I am canni (https://keybase.io/canni) on keybase.
- I have a public key ASB1gRf_XuAQQdaVhpJrpnsqhU1_nfpNE-iQg0_VF955Dgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import kotlin.system.measureTimeMillis | |
fun benchmarkIt(msg: String, block: (Int) -> Unit) { | |
var n = 1 | |
var duration: Long | |
do { | |
duration = measureTimeMillis { repeat(n, block) } | |
n *= 2 | |
} while (duration < 100L) |
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from enum import Enum | |
from sqlalchemy.types import SchemaType, TypeDecorator | |
from sqlalchemy.types import Enum as SAEnum | |
class EnumType(SchemaType, TypeDecorator): | |
def __init__(self, enum, name): |