Skip to content

Instantly share code, notes, and snippets.

View sudaraka94's full-sized avatar
👨‍💻
Building Stuff

Sudaraka Jayathilaka sudaraka94

👨‍💻
Building Stuff
View GitHub Profile
@keithweaver
keithweaver / start-video-stream-w-opencv.py
Last active December 11, 2021 10:23
Stream video in Python using OpenCV
# For more info: http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html
import cv2
import numpy as np
# Playing video from file:
# cap = cv2.VideoCapture('vtest.avi')
# Capturing video from webcam:
cap = cv2.VideoCapture(0)
currentFrame = 0
@willurd
willurd / web-servers.md
Last active July 19, 2024 02:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000