This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var singleton = function () { | |
| // all are public | |
| var someVariable = "some value" // acts like states | |
| var otherVariable = 123 // acts like states | |
| return { | |
| someFunction: function (someArg) { | |
| // expressions go here, change state | |
| return "other value" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.util.Random; | |
| var NUM_SAMPLES = 2000000000; | |
| val count = sc.parallelize(1 to NUM_SAMPLES).map{ _ => Random.nextLong }; | |
| var sum = count;for (_ <- 1 to 20){sum = sum ++ count}; | |
| sum.saveAsTextFile("hdfs://10.0.72.14:54310/data/big_num_700g.txt"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.4 | |
| Build date: 2016-04-24 11:38:59 |
NewerOlder