Skip to content

Instantly share code, notes, and snippets.

package interceptor
import (
"fmt"
"go.temporal.io/sdk/interceptor"
"go.temporal.io/sdk/workflow"
)
type blobSizeLimitInterceptor struct {
interceptor.WorkerInterceptorBase
{"last_scanned_block": 20329918, "blocks": {"20307339": {"0x751b8d56f45a6f367f4e8af8c32cc09a01ea06108591cfc4e9d8adfb71dddd63": {"0": {"args": {"account": "0x9aA88267d763127C18a52F6D698a067F15ad9be9", "publicKey": "0xf293b8433799fd9343cc80b429f0874f59c9a5968c94b3d2ad7eea0e12dbe2431fb195355b44562ebe016fb2386b69ee106637fa0f062af8a2d45ab919e47bdd", "multiaddr": "0x0422419114062383a5032700250802122103f293b8433799fd9343cc80b429f0874f59c9a5968c94b3d2ad7eea0e12dbe243"}, "event": "Announcement", "logIndex": 0, "transactionIndex": 0, "transactionHash": "0x751b8d56f45a6f367f4e8af8c32cc09a01ea06108591cfc4e9d8adfb71dddd63", "address": "0xD2F008718EEdD7aF7E9a466F5D68bb77D03B8F7A", "blockHash": "0xa988c56a35aa332660387deaa98a1b97d776f61c7eb6a3369d1aec7e70b1da16", "blockNumber": 20307339}}}, "20309588": {"0x5617d9201f2919802cab108e51c51aba9ccacdf95d4c8c9da11b2af8b6595d70": {"28": {"args": {"account": "0x8ff81FDecFe8151306F321B6edE72101532ee70A", "publicKey": "0x7961cbf113e8d27eed251413a475fd3b06e655a47468e5b05417528a73ca63b4
@mmxmb
mmxmb / chatbot_server.py
Last active October 31, 2018 18:34
Get websocket_server.py from https://github.com/Pithikos/python-websocket-server . Can test the chatbot using client.html from the same repo. Open client.html in multiple windows to simulate several clients talking to a single bot running on a single thread. To create custom client_id, edit id assignments on line 136 of websocket_server.py.
from rasa_core.agent import Agent
import os
import argparse
from websocket_server import WebsocketServer # taken from https://github.com/Pithikos/python-websocket-server
# CONSTANTS
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Ignore TF CPU instructions warning; see https://stackoverflow.com/questions/47068709/your-cpu-supports-instructions-that-this-tensorflow-binary-was-not-compiled-to-u
HOST = '0.0.0.0' # accept any host
PORT = 9001

Keybase proof

I hereby claim:

  • I am lawnboymax on github.
  • I am lawnboymax (https://keybase.io/lawnboymax) on keybase.
  • I have a public key ASDoggrChXC6YFw0DeJsp0q1iDDkn80nnLAm0vB3lPqTBQo

To claim this, I am signing this object: