import traceback
from multiprocessing import Process, Pipe
def parallel_async_invoke(payloads, work_func):
# => https://aws.amazon.com/blogs/compute/parallel-processing-in-python-with-aws-lambda/
# create a list to keep all processes
processes = []
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 sys | |
import base64 | |
import datetime | |
import hashlib | |
import hmac | |
import requests | |
import json | |
import urlparse | |
# This file is derived from the example here |
# Nice technique from https://srome.github.io/Covariate-Shift,-i.e.-Why-Prediction-Quality-Can-Degrade-In-Production-and-How-To-Fix-It/
# ... put two histograms on same plot ...
def produce_overlayed_hists_for_col_dfs(col, dfs):
fig = plt.figure(figsize=(12,12))
ax = fig.add_subplot(121)
Source: Copied the below from stackoverflow
If the remote server is using SNI (that is, sharing multiple SSL hosts on a single IP address) you will need to send the correct hostname in order to get the right certificate.
openssl s_client -showcerts -servername www.example.com -connect www.example.com:443
- Below,
diff
has just the left, right keys for whichd1
andd2
do not agree - Inserting
NOKEY
when left or right do not have that value.
import hashlib
import json
hsh = lambda x: hashlib.sha512(json.dumps(x)).hexdigest()[:5]
make_sorted_ordered = lambda d: OrderedDict(sorted(d.items(), key=lambda x:x[0]))
def delta(d1, d2):
import requests
import time
import json
from functools import partial
from requests.exceptions import ConnectionError, Timeout
<img src="https://blahblahblah/blah.png" alt="alt text" width="654" height="208">
NewerOlder