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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
plugins { | |
application | |
java | |
id("com.github.johnrengelman.shadow") version "2.0.4" | |
kotlin("jvm") version "1.3.10" | |
} |
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
* Comment | |
* Some other comment | |
SOMEHEADERS: | |
SECTION1 param1 param2 | |
value value value | |
somethingelse | |
SECTION2 param1 param2 | |
value value value | |
somethingelse |
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
import javafx.geometry.Orientation | |
import javafx.scene.Scene | |
import javafx.scene.control.TextField | |
import javafx.scene.image.Image | |
import javafx.scene.layout.BorderPane | |
import javafx.scene.layout.HBox | |
import javafx.scene.layout.VBox | |
import javafx.stage.Stage | |
import tornadofx.* |
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
import javafx.geometry.Orientation | |
import javafx.scene.Scene | |
import javafx.scene.control.TextField | |
import javafx.scene.image.Image | |
import javafx.scene.layout.BorderPane | |
import javafx.scene.layout.HBox | |
import javafx.scene.layout.VBox | |
import javafx.stage.Stage | |
import tornadofx.* |
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import com.jfrog.bintray.gradle.BintrayExtension | |
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask | |
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
import org.gradle.api.publish.maven.MavenPom | |
import org.jetbrains.dokka.gradle.* | |
val kotlin_version = "1.3.11" | |
val rdf4j_version = "2.4.2" |
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
import tornadofx.Controller | |
import tornadofx.EventBus | |
import tornadofx.FXEvent | |
class LogException(val ex: Exception) : FXEvent(EventBus.RunOn.ApplicationThread) | |
class ExceptionController: Controller() { | |
init { | |
subscribe<LogException> { | |
println("Received an exception "+ it.ex) |
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
object Citations: IntIdTable() { | |
override val tableName: String = "app_citation" | |
val code = varchar("code", 32) | |
val year = integer("year").nullable() | |
} | |
class Citation(id: EntityID<Int>) : IntEntity(id) { | |
companion object : IntEntityClass<Citation>(Citations) |
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
import arrow.effects.IO | |
import arrow.effects.coroutines.DeferredK | |
import arrow.effects.coroutines.extensions.deferredk.applicativeError.handleError | |
import arrow.effects.extensions.io.async.async | |
import arrow.effects.extensions.io.monad.binding | |
import arrow.effects.fix | |
import kotlinx.coroutines.delay | |
import java.time.LocalDateTime | |
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 arrowdebug | |
import arrow.core.left | |
import arrow.core.right | |
import arrow.effects.IO | |
import arrow.effects.extensions.io.monad.binding | |
import kotlinx.coroutines.runBlocking | |
sealed class Error : RuntimeException() | |
object ClientInvalidQuery : Error() |
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 arrowdebug | |
import arrow.effects.extensions.io.fx.fx | |
import arrow.core.left | |
import arrow.core.right | |
import arrow.effects.IO | |
import arrow.effects.extensions.io.monad.binding | |
import kotlinx.coroutines.runBlocking |