View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View gist:4235499
import com.twitter.scalding._ | |
import cern.colt.matrix.{DoubleFactory2D, DoubleFactory1D } | |
import cern.colt.matrix.linalg.Algebra | |
import java.util.StringTokenizer | |
class Portfolios(args : Args) extends Job(args) { | |
val cash = 1000.0 // money at hand | |
val error = 1 // its ok if we cannot invest the last dollar |