Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| //CHECK ishassan/build.sbt as well | |
| import org.apache.hadoop.hbase.client._ | |
| import org.apache.hadoop.hbase.util.Bytes | |
| import org.apache.hadoop.hbase.{CellUtil, HBaseConfiguration, TableName} | |
| import org.apache.hadoop.conf.Configuration | |
| import scala.collection.JavaConverters._ | |
| object ScalaHBaseExample extends App{ | |
| def printRow(result : Result) = { |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| <!-- Comment | |
| 1. {} == 3 or {} === 3 comparision when tried in any modern browser console yields in error | |
| And the same comparision when done using if block works well and goes to else part of the code. | |
| 2. Further, use the below html file to understand the comparision like in Runtime. | |
| Sample output: | |
| display x: | |
| 21 | |
| Code is edited after initial reference from https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_oper_add | |
| --> |
| /* | |
| Modified Kadane's algortihm | |
| 1. http://www.techiedelight.com/maximum-subarray-problem-kadanes-algorithm/ | |
| 2. compiled and tested using -- https://www.tutorialspoint.com/compile_java_online.php | |
| TODO | |
| a. For all -ves, print the max sub array properly | |
| b. While the output of Max sub array, do the formatting change (extra , at the start) | |
| */ | |
| /* Sample input and output |