Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block beyondeye

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
beyondeye / firebase_coroutine_integration.kt
Created May 27, 2017
integration of firebase wth kotlin coroutines
View firebase_coroutine_integration.kt
* allow to define callback wrappers that are protected from accidental multiple calls to resume/resumeWithException
* Created by daely on 3/30/2017.
class WrappedContinuation<T>(val c: Continuation<T>) : Continuation<T> {
var isResolved = false
override val context: CoroutineContext
get() = c.context
override fun resume(value: T) {
beyondeye / possible_bug_with_let.kt
Created Nov 2, 2015
possible bug with let in kotlin 1.0 beta
View possible_bug_with_let.kt
fun thisFunctionThrows() {
val a="aa"
a.let {
if(a!="aa") //<----------------
throw IllegalArgumentException()
fun thisFunctionDoesNotThrows() {
val a="aa"
beyondeye / IntArray2d.kt
Created Oct 28, 2015
A prototype 2D array implementation
View IntArray2d.kt
class IntArray2D: Cloneable
val xsize:Int
val ysize:Int
val _array:IntArray
constructor(xsize:Int, ysize:Int){
_array = IntArray(xsize*ysize)
You can’t perform that action at this time.