I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
// usage: node vending.js > transitions | |
var coins = [5, 10, 25, 100]; | |
var _sum = 125; | |
var validTransitions = []; | |
coins.forEach(function (c) { check(0, c); }) | |
function check(sum, coin, transitions) { | |
transitions = transitions || []; | |
var newSum = sum + coin; |