Skip to content

Instantly share code, notes, and snippets.

@bwarthur
bwarthur / IonideErrorRepro.fsx
Last active February 12, 2017 02:24
Code I have been using to try and reproduce intellisense issue with Ionide vscode plugin.
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
@bwarthur
bwarthur / DSGJson.r
Created December 7, 2016 16:24
Example of reading the json metadata file created by DSG in R.
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"),]
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;