Skip to content

Instantly share code, notes, and snippets.

View lee-hodg's full-sized avatar

Lee H. lee-hodg

View GitHub Profile
### Keybase proof
I hereby claim:
* I am lee-hodg on github.
* I am ziffer (https://keybase.io/ziffer) on keybase.
* I have a public key ASA1cwpxQnUr_jiEQg2bjzjplnZNxPtxfYkRKK2KKlGjTgo
To claim this, I am signing this object:
@lee-hodg
lee-hodg / gist:9525a23707750c9d2aee0ab1cda61447
Last active July 23, 2019 14:58
Lambda to async make requests
import json
import sys
import os
import logging
import requests
from boto3 import client as boto3_client
from requests_futures.sessions import FuturesSession
from raygun4py import raygunprovider
lambda_client = boto3_client('lambda')

Keybase proof

I hereby claim:

  • I am fpghost on github.
  • I am ziffer (https://keybase.io/ziffer) on keybase.
  • I have a public key ASCXB4tIYmtVXqdpEzObUjKfpwjeJ5U3_WtPPokHCx54vgo

To claim this, I am signing this object:

# Accepts array like [["iPod nano", ["Paris", "France", "Europe"]],
# ["Samsung S8", ["London", "UK", "Europe"]],
# ["Google Pixal", ["Rio", "Brazil", "South America"]]
# ]
from collections import defaultdict
def f(input):
d = defaultdict(set)
for obj in input: