Skip to content

Instantly share code, notes, and snippets.

@amandamiotto
amandamiotto / whiteboardCleaner.md
Created November 27, 2021 10:50 — forked from lelandbatey/whiteboardCleaner.md
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

@amandamiotto
amandamiotto / SetUpRWindows10
Created June 26, 2018 03:34
Tips for setting up R packages on windows 10
#Written by Chris Brown at Griffith Uni
#Tips for setting up R packages on windows 10
I recommend installing packages to your local drive, not the shared network drive. Though R will default to the network drive (which is "\\\\staff\..."), so some knowledge is required to overcome this.
You could also ask IT to bind a letter to your network drive. I've read that works (see here: https://github.com/r-lib/devtools/issues/353)
Here's the steps I followed to install packages:
Create a shortcut to R on desktop.
Right click it
@amandamiotto
amandamiotto / 0_reuse_code.js
Created October 27, 2016 22:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console