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
| let addingCalculator input = input + 1 | |
| let loggingCalculator innerCalculator input = | |
| printfn "input is %A" input | |
| let result = innerCalculator input | |
| printfn "result is %A" result | |
| result | |
| let add1 input = input + 1 | |
| let times2 input = input * 2 |
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
| install.packages("jsonlite") | |
| library("jsonlite") | |
| #Replace border_out.json with the json file your trying to read | |
| json_data <- fromJSON(readLines("border_out.json")) | |
| #Replace "Q1" with the name of the variable you would like to read the meta data of | |
| variable <- json_data[which(json_data$VariableName == "Q1"),] |
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
| public class Puzzle | |
| { | |
| //Your current xy position in the room | |
| private int xPosition; | |
| private int yPosition; | |
| //Boolean variables that tell you whether or not the red and yellow | |
| //force fields are currently turned on (true) or off (false). | |
| private boolean yellowField; | |
| private boolean redField; |