Skip to content

Instantly share code, notes, and snippets.

# USAGE: python minimal_example.py [receive | send]
from autobahn.asyncio.wamp import ApplicationSession
from autobahn.asyncio.wamp import ApplicationRunner
from autobahn.wamp.types import RegisterOptions
from autobahn.wamp import CallOptions
from autobahn import wamp
import io
#!/usr/bin/env python
# usage: python autobahn_start_AS_two_times.py host port realm
import asyncio
import sys
from autobahn.asyncio.wamp import ApplicationRunner, ApplicationSession
class CheckConnectionSession(ApplicationSession):
import datetime
import threading
import queue
import time
import sys
import pydicom
import pynetdicom3
SCP_PORT = 12345
import hashlib
import os
import random
import uuid
from collections import UserString
import re
import warnings
from pydicom._uid_dict import UID_dictionary
@rdebroiz
rdebroiz / bench.cpp
Last active March 4, 2021 14:20
bench tree<char> with stl algorithms
#include <iomanip>
#include <chrono>
#include <numeric>
#include <cmath>
#include <tree.hh>
using namespace std;
pair<double, double> meand_and_sigma(const vector<double>& v) {