Skip to content

Instantly share code, notes, and snippets.

@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active June 16, 2024 13:44
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

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

import requests
import sys
import bs4
found_excuses = set()
duplicate_counter = 0
while True:
page = requests.get("http://programmingexcuses.com/")
Don't worry, that value is only wrong half of the time
The unit test doesn't cover that eventuality
There was too little data to bother with the extra functionality at the time
I thought you signed off on that?
The program has never collected that information
That's interesting, how did you manage to make it do that?
Your browser must be caching the old content
Our internet connection must not be working
I couldn't find any examples of how that can be done anywhere online
I thought I fixed that