Skip to content

Instantly share code, notes, and snippets.

@donohoe
donohoe / genius-kill.js
Created June 7, 2016 00:21
Disable the Genius browser extension from working on a web page
(function(){
console.log("GK ftw");
function checkFlag() {
var checkPage = document.getElementsByTagName("genius-back-page");
if (checkPage.length) {
var checkPageEl = checkPage[0]
checkPageEl.parentNode.removeChild(checkPageEl);
}
var checkPrompt = document.getElementsByTagName("genius-pre-annotation-prompt");
if (checkPrompt.length) {
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
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

@p01
p01 / LICENSE.txt
Last active March 9, 2024 13:40 — forked from 140bytes/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE