Skip to content

Instantly share code, notes, and snippets.


Ted Blackman belisarius222

View GitHub Profile
import cv2
def downsample(im):
return im[::2, ::2, :]
def smoothIm(im, kernelSize=5):
return cv2.GaussianBlur(im, (kernelSize, kernelSize), 0)
belisarius222 / Meteor local mirror
Last active Mar 26, 2018 — forked from anonymous/Meteor local mirror
Added `changed` callback and factored out shared --> local conversion.
View Meteor local mirror
//common to client and server
SharedCollection = new Meteor.Collection('shared');
//client from here on out
LocalMirror = new Meteor.Collection(null);
var convertSharedToLocal = function(sharedDoc) {
var localDoc = LocalCollection._deepcopy(sharedDoc); // undocumented API, might change