Skip to content

Instantly share code, notes, and snippets.

(base) ✘ will@wills-mbp  ~/git/t/myavant   main  docker compose -f docker-compose.yml -f avant-basic/docker-compose.yml up web
[+] Running 4/4
⠿ Container myavant-db-1 Running 0.0s
⠿ Container myavant-redis-1 Recreated 0.4s
⠿ Container myavant-minio-1 Running 0.0s
⠿ Container myavant-web-1 Recreated
import random
from collections import Counter
class MyDict:
def __init__(self):
self._dict = dict()
self._key_cache = list()
self._values_counter = Counter()
self._values_cache = list()
import time
import requests
import threading
class HTTPBencher(threading.Thread):
def __init__(self, span):
super(HTTPBencher, self).__init__()
self.span=span
self.final_count = None
@wmarshall484
wmarshall484 / sautee_chicken.py
Last active July 26, 2017 05:59
A recipe for sauteed chicken
from stores import Safeway
from ingredients import Meats, Oils, Vegetables, Spices
from kitchen import Pan, Stove, Plate
from life import Girlfriend, Me
import common_steps, units, time
class Recipe(object):
def __init__(self, name, description=None, cook_time=None):
self.name = name
self.description = description