Skip to content

Instantly share code, notes, and snippets.

Array.prototype.simple_moving_average = function(window_length) {
var averaged = new Array(this.length);
var chunk = [];
for (k = 0; k < this.length; k++) {
chunk.push(this[k]);
if (chunk.length > window_length) chunk.shift();
averaged[k] = chunk.sum() / chunk.length; // sum() is an exercise left to the reader
}
return averaged;
};
@burnto
burnto / happy.md
Created October 20, 2010 02:04 — forked from huned/happy.md

Some stuff that makes me happy:

  • good decisions
  • well written, persuasive prose
  • elegant solutions
  • evocative experiences
  • genuine, honest communication
  • afterglow
  • summertime
  • doodling
@burnto
burnto / lumberlabs_cardio_engineering_jobs.md
Created April 6, 2012 01:51 — forked from lumberlabs/seeking_engineers.rst
Opportunities for talented engineers at Lumber Labs / card.io

Opportunities for talented engineers at Lumber Labs / card.io

Lumber Labs is a mobile payments start-up located in San Francisco. We create card.io – consumer apps and developer tools that enable simple, low-friction transactions on mobile devices. Company founders were early employees at AdMob. We are venture-funded, growing, and looking for exceptional colleagues.

Why Lumber Labs?

  • Tackle interesting, hard technical and design problems with immediate real world application.
  • Maintain a work-life balance. Enjoy every day, spend time with your friends and family, have fun at work.
  • Generous compensation, benefits, and vacation.
@burnto
burnto / seeking_engineers.rst
Last active August 2, 2016 02:17 — forked from lumberlabs/seeking_engineers.rst
card.io opportunities at PayPal

Wanted: Talented engineering colleagues

We are an engineering team working on mobile payments at PayPal in San Jose. Acquired by PayPal in July 2012, card.io's founders were early employees at AdMob, and are now building software to enable simple, low-friction transactions on a mobile device.

Why you might want to work with us:
  • Tackle interesting, hard technical problems with immediate real world application.
  • Maintain a work-life balance and have fun.
  • Generous comp, benefits, and vacation.