Skip to content

Instantly share code, notes, and snippets.

John Bender johnbender

View GitHub Profile
lelandbatey /
Last active Apr 4, 2019
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


dmethvin / gist:1676346
Created Jan 25, 2012
Breakpoint on access to a property
View gist:1676346
function debugAccess(obj, prop, debugGet){
var origValue = obj[prop];
Object.defineProperty(obj, prop, {
get: function () {
if ( debugGet )
return origValue;
You can’t perform that action at this time.