I hereby claim:
- I am TomNomNom on github.
- I am tomnomnom (https://keybase.io/tomnomnom) on keybase.
- I have a public key whose fingerprint is 52D9 4FE1 8D6A A5EF 0FE3 3ECE CE03 0B9A DABB DC9E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strings" | |
| ) | |
| // Ops | |
| const ( |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| // The `json:"whatever"` bit is a way to tell the JSON |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| import cv2 | |
| # See https://www.youtube.com/watch?v=FH5oDFgLSs4 for example output | |
| cap = cv2.VideoCapture(0) | |
| face_cascade = cv2.CascadeClassifier("/usr/share/opencv/haarcascades/haarcascade_frontalface_default.xml") | |
| eye_cascade = cv2.CascadeClassifier("/usr/share/opencv/haarcascades/haarcascade_eye.xml") | |
| fourcc = cv2.cv.CV_FOURCC(*'XVID') | |
| out = cv2.VideoWriter('output.avi',fourcc, 15, (640,480)) |
| <html> | |
| <head> | |
| <style> | |
| canvas { | |
| border: 1px solid #666666; | |
| } | |
| </style> | |
| </head> | |
| <body> |
| #!/bin/bash | |
| set -e | |
| BRANCH=${1} | |
| if [ -z "${BRANCH}" ]; then | |
| echo "Usage: ${0} <branch>" | |
| exit 1 | |
| fi |
| // The ArrayList of slaves is not serializable, so fetching them should be marked as @NonCPS so that | |
| // no attempt is made to serialize and save the local state of the function. See here for details: | |
| // https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#serializing-local-variables | |
| @NonCPS | |
| def getSlaves() { | |
| def slaves = [] | |
| hudson.model.Hudson.instance.slaves.each { | |
| slaves << it.name | |
| } | |
| return slaves |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "sync" | |
| "time" | |
| ) | |
| const ( |
| #!/usr/bin/env python3 | |
| # IRC User List | |
| # Written by Tom Hudson for the Raspberry Pi User Guide | |
| # Updated 2017-01-03 for Python 3.* | |
| # http://tomhudson.co.uk/ | |
| import sys, socket, time | |
| RPL_NAMREPLY = '353' | |
| RPL_ENDOFNAMES = '366' |