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]
// How to run:
//
// mjpeg-streamer [camera ID] [host:port]
//
// go get -u github.com/hybridgroup/mjpeg
// go get -u github.com/technomancers/piCamera
//
// to run on a pi
// go run -tags pi mjpeg.go 0.0.0.0:8080
//
@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.

@pcunning
pcunning / keybase.md
Last active August 29, 2015 14:18
Keybase

Keybase proof

I hereby claim:

  • I am pcunning on github.
  • I am pcunning (https://keybase.io/pcunning) on keybase.
  • I have a public key whose fingerprint is FD27 BE1A 5597 8973 69A2 AECA 8FE8 D306 1B8A C385

To claim this, I am signing this object: