Skip to content

Instantly share code, notes, and snippets.

import thread
import time
import zmq
# global zmg context
context = zmq.Context.instance()
endpoint = "tcp://*:8888"
# the subscriber thread function
def subscriber(name, address, cnt, subscriptions):
@mchwalisz
mchwalisz / foobar.py
Last active October 7, 2016 07:34
Python: Empty script with docopt
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
foobar.py: Does really cool stuff
Usage:
foobar.py [options] [-q | -v]
foobar.py --config
@mchwalisz
mchwalisz / ros.bash
Last active August 29, 2015 13:56
Personalized ROS startup script
#!/bin/bash
RP_BASEDIR=~/Code/ros
export TURTLEBOT_BASE=kobuki
export TURTLEBOT_STACKS=hexagons
export TURTLEBOT_3D_SENSOR=kinect
# source /opt/ros/groovy/setup.bash
source /home/opt/ros-hydro-ws/install_isolated/setup.bash