Skip to content

Instantly share code, notes, and snippets.

@pcunning
pcunning / main.go
Created August 5, 2019 17:28
gophercon stay in the lines
// What it does:
//
// This example opens a video capture device, then streams MJPEG from it.
// Once running point your browser to the hostname/port you passed in the
// command line (for example http://localhost:8080) and you should see
// the live video stream.
//
// How to run:
//
// mjpeg-streamer [camera ID] [host:port]
@pcunning
pcunning / ReadMe.md
Last active August 29, 2015 14:27 — forked from WardCunningham/ReadMe.md
Push Pins

We simulate push-pins marking locations on a map. We use Force layout to position the pins as close to where they belong as possible. This may not be very close in geographic terms. However, the energy minimizing placement looks sensible on maps of large regions with densely clustered locations.