I hereby claim:
- I am knorwood on github.
- I am kortox (https://keybase.io/kortox) on keybase.
- I have a public key whose fingerprint is 37BC DC0D 5608 1971 92EF CD9B 9507 65A7 F8F9 29A8
To claim this, I am signing this object:
| """ | |
| Sending a payload of events to the /batch endpoint using the requests library. | |
| """ | |
| import json | |
| import requests | |
| # Be cautious when setting your API key and running this script since it will send the following | |
| # two events to your app! | |
| API_KEY = 'YOUR_API_KEY_HERE' | |
| EVENTS = [ |
| from concurrent.futures import ThreadPoolExecutor | |
| import json | |
| import logging | |
| import requests | |
| handler = logging.StreamHandler() | |
| handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) | |
| logging.getLogger().addHandler(handler) | |
| logging.getLogger().setLevel(logging.INFO) |
| import requests | |
| import json | |
| import urllib | |
| # Be cautious when setting your API key and running this script since it will send the following | |
| # two events to your app! | |
| API_KEY = 'YOUR API KEY HERE' | |
| events = [ | |
| {'user_id': 'Alice', 'event_type': 'hello world'}, | |
| {'user_id': 'Bob', 'event_type': 'hello world'}, |
| -- hmincrby for redis | |
| -- | |
| -- Usage: | |
| -- redis-cli EVAL "$(cat hmincrby.lua)" 1 key field1 num1 field2 num2 ... fieldn numn | |
| if 1 ~= table.getn(KEYS) then | |
| error("Must have exactly 1 key") | |
| end | |
| if 0 ~= table.getn(ARGV) % 2 then |
I hereby claim:
To claim this, I am signing this object: