Skip to content

Instantly share code, notes, and snippets.

View ganeshchand's full-sized avatar

Ganesh Chand ganeshchand

View GitHub Profile
@ganeshchand
ganeshchand / youtube-tips-tricks.md
Created November 25, 2015 08:33
Youtube Tips and Tricks
@ganeshchand
ganeshchand / scala-regex.scala
Created February 18, 2016 00:30
scala-regex.scala
val lines = Array(
"CA94401,CA1,02,CB2,03,K1,Y2,10,20",
"CA94402,CA2,03,CB3,043,L1,Z2,10,20")
lines.filter(line => line.contains("CA94401"))
val kv = lines.map(
line =>
(line.split(",")(0),
line.split(",").filter(str => str.matches("^[A-Za-z][0-9]*$")).mkString(","))) // (k,v)
@ganeshchand
ganeshchand / Scala Blogs and Userful links
Last active May 22, 2016 18:16
Scala Blogs and Userful links
@ganeshchand
ganeshchand / SQL blogs
Created April 28, 2016 23:13
SQL blogs
http://blog.codinghorror.com/a-visual-explanation-of-sql-joins/
@ganeshchand
ganeshchand / Sample Spark projects
Created May 2, 2016 20:21
Sample Spark projects
https://github.com/Scalera/twitter-stream/tree/master/src/main
http://www.scientificamerican.com/tech/
@ganeshchand
ganeshchand / Play Framework Notes
Last active May 17, 2016 13:49
Play Framework
http://playframework.blogspot.com
https://groups.google.com/forum/#!forum/play-framework
object ScalaJSExample extends js.JSApp{
def main() = {
val xs = Seq(1, 2, 3)
println(xs.toString)
val ys = Seq(4, 5, 6)
println(ys.toString)
val zs = for{
x <- xs
y <- ys
} yield x * y
@ganeshchand
ganeshchand / Spark Open Source
Created May 18, 2016 08:53
Spark Open Source Project
Contributing to Spark project - https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark