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)) |
<?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; | |
} |
#!/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 |
alert(1); |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
# Open files modified in a git commit in vim tabs; defaults to HEAD. Pop it in your .bashrc | |
# Examples: | |
# virev 49808d5 | |
# virev HEAD~3 | |
function virev { | |
commit=$1 | |
if [ -z "${commit}" ]; then | |
commit="HEAD" | |
fi | |
rootdir=$(git rev-parse --show-toplevel) |
<?php | |
/** | |
* Playing with some of PHP 5.4 RC1's features | |
* | |
* A trait to make an object "mungeable"; i.e. so you can "munge" | |
* methods (closures/lambdas) and properties into it. | |
* | |
* All methods and properties will be public. | |
* | |
* This is pure experimentation. Please do not attempt to derive any |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>My awesome homepage</title> | |
<script type="text/javascript"> | |
(function(){ | |
// Press ci" (Change In quotes) with the cursor between |
From a7209454d1817f0e79b62d78b370cd8390fb1069 Mon Sep 17 00:00:00 2001 | |
From: Tom Hudson <mail@tomnomnom.com> | |
Date: Tue, 15 May 2012 22:55:24 +0100 | |
Subject: [PATCH] Enabled use of XDEBUG_PROFILE trigger from CLI via _ENV | |
globals | |
--- | |
xdebug.c | 3 +++ | |
1 file changed, 3 insertions(+) |