Skip to content

Instantly share code, notes, and snippets.

@toczkos
toczkos / zproxy.py
Created October 25, 2018 14:56 — forked from kianby/zproxy.py
ZeroMQ, Python, XSUB / XPUB proxy
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import zmq
def main():
context = zmq.Context()
from btgym import BTgymEnv
import IPython.display as Display
import PIL.Image as Image
from gym import spaces
import gym
import numpy as np
import random
@toczkos
toczkos / Apple push notification
Created July 25, 2018 12:14 — forked from netoxico/Apple push notification
Apple push notification with python
#!/usr/bin/env python
import ssl
import json
import socket
import struct
import binascii
def send_push_message(token, payload):
# the certificate file generated from Provisioning Portal