- Generate TLS certificates for
localhost
:
pip install trustme-cli
trustme-cli
- Run
wrk
on each endpoint, eg:
localhost
:pip install trustme-cli
trustme-cli
wrk
on each endpoint, eg:/**** | |
Creatd by Anam Ahmed (https://anam.co) | |
Sample Use: | |
document.querySelector("input[type=file]").addEventListener("change",function(e){ | |
if(e.target.files.length){ | |
_resample(e.target.files[0],1000,function(response){ | |
console.log(response); // returns an object: {stats:<compression stats>,file:output file} | |
}); | |
} | |
}); |
""" | |
Single Responsibility Principle | |
“…You had one job” — Loki to Skurge in Thor: Ragnarok | |
A class should have only one job. | |
If a class has more than one responsibility, it becomes coupled. | |
A change to one responsibility results to modification of the other responsibility. | |
""" | |
class Animal: | |
def __init__(self, name: str): |
Picking the right architecture = Picking the right battles + Managing trade-offs
#! /usr/bin/env python | |
# | |
# Mixpanel, Inc. -- http://mixpanel.com/ | |
# | |
# Python API client library to consume mixpanel.com analytics data. | |
import hashlib | |
import urllib | |
import time | |
try: |