From af427976bc445898f77f520c40d15f480b7eeb85 Mon Sep 17 00:00:00 2001 From: Jeroen ter Heerdt Date: Fri, 1 Mar 2019 16:09:28 -0800 Subject: [PATCH] updating appdeploy samples --- .../sql-big-data-cluster/app-deploy/RollDice/roll-dice.R | 7 +------ .../features/sql-big-data-cluster/app-deploy/addpy/add.py | 3 +-- .../app-deploy/magic8ball/magic8ball.py | 3 --- .../app-deploy/sumofsq/sum_of_squares.R | 1 - 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/samples/features/sql-big-data-cluster/app-deploy/RollDice/roll-dice.R b/samples/features/sql-big-data-cluster/app-deploy/RollDice/roll-dice.R index 3c7dc182..df29ebed 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/RollDice/roll-dice.R +++ b/samples/features/sql-big-data-cluster/app-deploy/RollDice/roll-dice.R @@ -6,7 +6,6 @@ ## ##################################################### ##################################################### -#install.packages("TeachingDemos") # Note if you choose > 10 as the number of dice the app fails as it is not able to handle Null or N/A which are the default lables for the colors rollEm <- function(numDice = 2) @@ -21,8 +20,4 @@ rollEm <- function(numDice = 2) return(as.data.frame(r)) } else {"Oops we have not quite figued this out... number of dice need to be less than or equal to 10!"} -} - - -result<-rollEm(x) - +} \ No newline at end of file diff --git a/samples/features/sql-big-data-cluster/app-deploy/addpy/add.py b/samples/features/sql-big-data-cluster/app-deploy/addpy/add.py index 284c999b..404928a0 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/addpy/add.py +++ b/samples/features/sql-big-data-cluster/app-deploy/addpy/add.py @@ -1,4 +1,3 @@ def add(x,y): result = x+y - return result; -result=add(x,y) + return result diff --git a/samples/features/sql-big-data-cluster/app-deploy/magic8ball/magic8ball.py b/samples/features/sql-big-data-cluster/app-deploy/magic8ball/magic8ball.py index 9d3fd6bc..2a726e80 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/magic8ball/magic8ball.py +++ b/samples/features/sql-big-data-cluster/app-deploy/magic8ball/magic8ball.py @@ -34,6 +34,3 @@ def magic8ball(txt): msg="My sources say no" return msg -#quizme="SQL Server Big Data Cluster is awesome" - -result =magic8ball(txt) diff --git a/samples/features/sql-big-data-cluster/app-deploy/sumofsq/sum_of_squares.R b/samples/features/sql-big-data-cluster/app-deploy/sumofsq/sum_of_squares.R index 3caec4a3..81324549 100644 --- a/samples/features/sql-big-data-cluster/app-deploy/sumofsq/sum_of_squares.R +++ b/samples/features/sql-big-data-cluster/app-deploy/sumofsq/sum_of_squares.R @@ -1,4 +1,3 @@ sofsq <- function(a,b) { a^2 + b^2 } -result <- sofsq (a,b)