This file contains 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 datetime | |
import json | |
import pathlib | |
import subprocess | |
from logging import getLogger | |
from web3 import Web3 | |
from web3.auto.infura import w3 |
This file contains 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
package metrics | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"net/http" | |
"os" | |
"time" |
This file contains 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 sys | |
sys.path.append('/usr/local/python') | |
import cv2 | |
from openpose import pyopenpose as op | |
def main(): |
This file contains 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 asyncio | |
from contextlib import asynccontextmanager, AsyncExitStack | |
import aioredis | |
import trio_asyncio | |
async def test_aioredis(): | |
""" test to use aioredis in trio using trio_asyncio """ | |
async with trio_asyncio.open_loop(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
class ValueObject(object): | |
""" base class for Value Objects | |
please call _set_properties in constructor. | |
""" | |
def __new__(class_, *args, **kwargs): | |
self = object.__new__(class_, *args, **kwargs) | |
self.__initialized = False | |
self.__params = dict() |
This file contains 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
'use strict'; | |
var _ = require('underscore'); | |
var Bacon = require('baconjs').Bacon; | |
var RANGE = 36; | |
var PRODUCTIVITY = { | |
2: 1/36, | |
3: 2/36, |