Skip to content

Instantly share code, notes, and snippets.

/*
* http://kevin.vanzonneveld.net
* original by: Webtoolkit.info (http://www.webtoolkit.info/)
* namespaced by: Michael White (http://getsprink.com)
* tweaked by: Jack
* improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
* input by: Brett Zamir (http://brett-zamir.me)
* bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
* depends on: utf8_encode
* example 1: md5('Kevin van Zonneveld');
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r

Description

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:

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

Results

class Stylesheet
include MongoMapper::Document
class Processor
def self.errors
[]
end
attr_reader :contents