Requisites:
- Create a free account at https://www.mailgun.com/
- Save your API Key as a environment variables:
export MAILGUN_API_KEY=key-1111111111111111111111111
As example, I will use a model named Request.
Requisites:
export MAILGUN_API_KEY=key-1111111111111111111111111As example, I will use a model named Request.
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"
| class String | |
| def articleize | |
| me = self.downcase | |
| an_startswith = ['a','e','i','o','u'] | |
| an_exceptions = ['unit'] #add more when you think of them! | |
| if me.start_with?(*(an_startswith + an_exceptions)) | |
| return "an #{self}" | |
| else | |
| return "a #{self}" |