Skip to content

Instantly share code, notes, and snippets.

View kmpm's full-sized avatar

Peter Magnusson kmpm

View GitHub Profile
@kmpm
kmpm / map_reduce_stddev.js
Created September 12, 2011 16:41 — forked from dmitryame/Calculate standard deviation in mongo
mongo db Standard deviation calculation with map reduce using the Welford algoritm.
/*
* (The MIT License)
*
* Copyright (c) 2011 Peter Magnusson <kmpm@birchroad.net>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* 'Software'), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
@kmpm
kmpm / pylink.sh
Created April 28, 2011 11:51 — forked from zvoase/pylink.sh
pylink - Link and unlink Python modules to your site packages directory.