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:
| 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)) |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| // The `json:"whatever"` bit is a way to tell the JSON |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strings" | |
| ) | |
| // Ops | |
| const ( |
I hereby claim:
To claim this, I am signing this object:
| alert(1); |
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }).listen(1337, '0.0.0.0'); | |
| console.log('Server running at http://0.0.0.0:1337/'); |
| #!/bin/bash | |
| DATE_FMT="%Y-%m-%dT%H:%M:%S" | |
| BACKUP_PREFIX="backup" | |
| E_ARGS=1 | |
| E_NO_SOURCE_DIR=2 | |
| E_NO_DEST_DIR=3 | |
| E_RSYNC_FAIL=4 |
| <?php | |
| function array_extract(array $input, array $keys){ | |
| $output = []; | |
| foreach ($keys as $key){ | |
| if (!array_key_exists($key, $input)) continue; | |
| $output[$key] = $input[$key]; | |
| } | |
| return $output; | |
| } |
| <?php | |
| const HOUSE_NUMBER = 2; | |
| const POSTCODE = 'LS1 4AP'; | |
| const SERVICE_URL = 'http://www.productsandservices.bt.com/consumerProducts/v1/addressSearch.do'; | |
| $query = http_build_query(array( | |
| 'postcode' => POSTCODE, |