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
package models | |
import javax.inject._ | |
import akka.actor.ActorSystem | |
import play.api.libs.concurrent.CustomExecutionContext | |
/** | |
* This class is a pointer to an execution context configured to point to "database.dispatcher" | |
* in the "application.conf" file. |
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
@Grapes( | |
@Grab(group='net.sourceforge.htmlunit', module='htmlunit', version='2.27') | |
) | |
import com.gargoylesoftware.htmlunit.WebClient | |
import com.gargoylesoftware.htmlunit.html.HtmlPage | |
def isOsten = {bl -> | |
def ostenLabelBl = ["Sachsen", "Thüringen", "Sachsen-Anhalt", "Mecklenburg-Vorpommern", "Berlin", "Brandenburg"] | |
if (bl in ostenLabelBl) | |
"Osten" |
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
library(SparkR) | |
sc <- sparkR.init(sparkPackages = "com.databricks:spark-csv_2.10:1.2.0") | |
sqlContext <- sparkRSQL.init(sc) |
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
@SuppressWarnings("unchecked") // It's a cast, I am responsible. | |
private void callToMethod(int i, int j) { | |
if(f instanceof BiFunction){ | |
BiFunction<Integer, Integer, Boolean> callable = (BiFunction<Integer, Integer, Boolean>) f; | |
callable.apply(0, 1); | |
} else if(f instanceof BiConsumer){ | |
BiConsumer<Integer, Integer> callable = (BiConsumer<Integer, Integer>) f; | |
callable.accept(i, j); | |
} | |
} |