I hereby claim:
- I am mivade on github.
- I am mivade (https://keybase.io/mivade) on keybase.
- I have a public key ASCjifbgjSNGV_4F5Ge6JtJZBHGMNpi4miYvMDbZUbD1Fwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
"""Examples of how to bind a socket to a random port and have that port number | |
accessible to other processes. Useful for interprocess communications. | |
""" | |
import time | |
import socket | |
from socket import AF_INET, SOCK_STREAM | |
from multiprocessing import Process, Queue, Event | |
from contextlib import contextmanager |
Demo of sending raw bytes over ZMQ sockets with C++.
This assumes you are using miniconda and have installed cppzmq:
conda install -c conda-forge cppzmq
"""This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
"""Simple demo of using Flask with aiohttp via aiohttp-wsgi's | |
WSGIHandler. | |
""" | |
import asyncio | |
from aiohttp import web | |
from aiohttp_wsgi import WSGIHandler | |
from flask import Flask, render_template |
Testing using Pygal to render plots server-side and embed them in a
web page via a <canvas>
.
"""Demonstration of using Tornado to send updates to a Bokeh plot | |
without using the bokeh-server. | |
""" | |
import json | |
import numpy.random as npr | |
from tornado.ioloop import IOLoop, PeriodicCallback | |
from tornado.web import Application, RequestHandler |