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 jakarta.ws.rs.sse.Sse | |
import jakarta.ws.rs.sse.SseEventSink | |
import kotlinx.coroutines.cancel | |
import kotlinx.coroutines.coroutineScope | |
import kotlinx.coroutines.flow.MutableSharedFlow | |
import kotlinx.coroutines.flow.collectLatest | |
private data class Event(val name: String, val data: String) | |
object SseBus { | |
private val flows: MutableMap<String, MutableSharedFlow<Event>> = mutableMapOf() |
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
// ==UserScript== | |
// @name Remove destinations from AZair.eu | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-16 | |
// @description Removes destinations from AZAir search results | |
// @author Rattlyy | |
// @match https://www.azair.eu/azfin.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=azair.eu | |
// @grant none | |
// ==/UserScript== |
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 gg.jte.ContentType | |
import gg.jte.TemplateEngine | |
import gg.jte.resolve.DirectoryCodeResolver | |
import gg.jte.watcher.DirectoryWatcher | |
import io.ktor.server.application.* | |
import io.ktor.server.jte.* | |
import io.ktor.server.routing.* | |
import io.ktor.server.sse.* | |
import java.nio.file.Path |