Skip to content

Instantly share code, notes, and snippets.

View mulya's full-sized avatar

Rinat Mulyukov mulya

View GitHub Profile
@mulya
mulya / Main.js
Created February 1, 2020 10:01
ScalaJS JQuery facade ajax usage
$.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)
@mulya
mulya / Main.java
Last active March 13, 2017 10:16
Решение задачи Кирпичная пирамида
/**
*
*/
public class Main {
/**
* Рекурсия
* Коротко написано, но долго работает за счёт дублирования пересчёта веса
*/
public static float functionW_recursion(int row, int pos) {
System.out.println("row: " + row + " pos: " + pos);
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")