Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# ---------------------------------------------------------------
# Data Analyst Environment Setup Script (macOS)
# ---------------------------------------------------------------
#
# This script installs the following:
# - Homebrew (package manager for macOS)
# - pyenv (Python version manager)
# - Python 3.13.0 via pyenv
@tehmas
tehmas / client.py
Created December 4, 2016 16:55
Sending OpenCV frames using Python TCP sockets
import cv2
import cPickle
import socket
import struct
TCP_IP = '127.0.0.1'
TCP_PORT = 9501
server_address = (TCP_IP, TCP_PORT)
i = 0