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
fun main() = runBlocking { | |
val (first, second, third) = ( | |
parallel { | |
println("I/O") | |
delay(100) | |
"FIRSTRESULT" | |
} and { | |
println("I/O") |
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
license: gpl-3.0 | |
border: no | |
height: 2400 |
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
nil | |
"Hello World!" | |
:hello-world! | |
:what-is-the-difference-with-a-string? | |
:this-is-like-an-infinite-enum |
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 it.r.rx; | |
import org.apache.commons.lang.RandomStringUtils; | |
import rx.Observable; | |
import rx.functions.Action1; | |
import rx.schedulers.Schedulers; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.stream.Collectors; |
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 it.r.meta; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
/** | |
* Created by rascio on 28/07/16. | |
*/ | |
public class Content { |
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 it.r.rapportini.utils.optional; | |
import java.util.Optional; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
/** | |
* Created by rascio on 26/02/16. | |
*/ |
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
function Dispatcher(){ | |
var handlers = {} | |
this.register = function(queryExecutorDescriptor){ | |
handlers[queryExecutorDescriptor['for']] = queryExecutorDescriptor.retrieve; | |
} | |
this.dispatch = function(query, params){ | |
var handle = handlers[query] | |
if (handle){ | |
return handle(params); | |
} |