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
Dear Odagiri san, | |
My name is Arshad. IT Recruiter with ACS Japan. | |
How is your current work Situation. | |
Are you open to hear about new Job Opportunities? | |
If you are open, can I know when you are available for 5 minutes to talk or you can call me on 03-6868-7512. |
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
import json | |
import itertools | |
with open("Pipfile.lock") as f: | |
lock = json.load(f) | |
print("\n".join(g for g, l in itertools.groupby(sorted(["{k}{v[version]}".format(k=k, v=v) for k, v in (list(lock["default"].items()) + list(lock["develop"].items()))])))) |
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
import math | |
from pyramid.config import Configurator | |
from pyramid.renderers import JSON | |
def nan(request): | |
return {"n": math.nan} | |
def inf(request): | |
return {"i": math.inf} |
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
import time | |
import types | |
def sleep(delay): | |
begin = time.time() | |
while time.time() < begin + delay: | |
yield | |
return time.time() |
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
import time | |
def sleep(delay): | |
begin = time.time() | |
while time.time() < begin + delay: | |
yield | |
return time.time() | |
>>> def gen1():
... yield 1
... yield 2
... yield 3
...
>>> g1 = gen1()
>>> next(g1)
1
>>> next(g1)
2
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 typing import Optional | |
import attr | |
from sqlalchemy import ( | |
Table, | |
MetaData, | |
Column, | |
Unicode, | |
Integer, | |
create_engine, | |
ForeignKey, |
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 pyramid.config import Configurator | |
from pyramid.interfaces import IRequest, IResponse | |
from abc import ABC | |
class IHelloContext(ABC): | |
""" resource of hello """ | |
message: str |
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
""" | |
>>> v = {"a": 1, "b": 2} | |
>>> assert v == {"a": 1, "b": Any()} | |
>>> assert v == {"a": 1, "b": IsA(int)} | |
""" | |
class Any: | |
def __eq__(self, o): |