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
$.ajax(js.Dynamic.literal( | |
url = "https:/url.net/1234567", | |
method = "GET", | |
cache = false, | |
success = (arg1: js.Dynamic, arg2: String, arg3: JQueryXHR) => { | |
println(js.JSON.stringify(arg1)) | |
val p = document.createElement("p") | |
val text = document.createTextNode(arg1.track.id.toString) | |
p.appendChild(text) | |
document.body.appendChild(p) |
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
/** | |
* | |
*/ | |
public class Main { | |
/** | |
* Рекурсия | |
* Коротко написано, но долго работает за счёт дублирования пересчёта веса | |
*/ | |
public static float functionW_recursion(int row, int pos) { | |
System.out.println("row: " + row + " pos: " + pos); |
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
import sbt._ | |
import Keys._ | |
// for more details, see http://jmhofer.johoop.de/?p=292 | |
// put your Scalatron.jar into lib/ | |
object Build extends Build { | |
val botDirectory = SettingKey[File]("bot-directory") | |
val play = TaskKey[Unit]("play") |