This file contains 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
def main (args: Array[String]) : Unit = { | |
val spark = SparkSession | |
.builder | |
.appName("Temp") | |
.config("spark.master", "local") | |
.getOrCreate | |
val sumArray = udf((vs: Seq[Int]) => vs match { | |
case _ => { | |
var sum = 0 |
This file contains 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
def main (args: Array[String]) : Unit = { | |
val spark = SparkSession | |
.builder | |
.appName("Temp") | |
.config("spark.master", "local") | |
.getOrCreate | |
val stringifyArray = udf(( vs: Seq[Int]) => vs match { | |
case null => null | |
case _ => s"${vs.mkString(" ")}" |
This file contains 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
def main (args: Array[String]) : Unit = { | |
val spark = SparkSession | |
.builder | |
.appName("Temp") | |
.config("spark.master", "local") | |
.getOrCreate | |
val stringifyArray = udf(( vs: Seq[String]) => vs match { | |
case null => null | |
case _ => s"${vs.mkString(" ")}" |
This file contains 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
console.clear() | |
//action creators | |
const newPolicy = (name, amount) => { | |
return { | |
type: "NEW_POLICY", | |
payload: {name: name, amount: amount} | |
} | |
} |
This file contains 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
// | |
// ViewController.swift | |
// Practice-Adding-Numbers | |
// | |
// Created by Maher Bhavsar on 29/07/19. | |
// Copyright © 2019 Seven Dots. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
This file contains 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
// | |
// ViewController.swift | |
// Practice-Adding-Numbers | |
// | |
// Created by Maher Bhavsar on 29/07/19. | |
// Copyright © 2019 Seven Dots. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
This file contains 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
// | |
// ViewController.swift | |
// Practice-Adding-Numbers | |
// | |
// Created by Maher Bhavsar on 29/07/19. | |
// Copyright © 2019 Seven Dots. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
This file contains 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
// | |
// ViewController.swift | |
// Practice-Adding-Numbers | |
// | |
// Created by Maher Bhavsar on 29/07/19. | |
// Copyright © 2019 Seven Dots. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
This file contains 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
// | |
// ViewController.swift | |
// Practice-Adding-Plane | |
// | |
// Created by Maher Bhavsar on 25/07/19. | |
// Copyright © 2019 Seven Dots. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
This file contains 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
// | |
// ViewController.swift | |
// Practice-Adding-Plane | |
// | |
// Created by Maher Bhavsar on 25/07/19. | |
// Copyright © 2019 Seven Dots. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
NewerOlder