Skip to content

Instantly share code, notes, and snippets.

View yauh's full-sized avatar

Stephan Hochhaus yauh

View GitHub Profile
@richsilv
richsilv / ReactiveObject.js
Last active August 29, 2015 14:10
Meteor Reactive Object
// initial - Initial value (must be an object)
// name - a name to help identify the object if you're using objectStore
// objectStore - a central store to push all initialised objects into (for debugging)
// maxInvalidate - the maximum number of times to invalidate computations which depend
// on this object. Avoids and helps diagnose infinite invalidation loops in testing.
//
// note that setting a sub-key on a key which is currently literal-valued will delete
// the existing value
ReactiveObject = function(initial, name, objectStore, maxInvalidate) {
@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

@dariocravero
dariocravero / README.md
Created October 20, 2012 05:25
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.