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 io.ktor.application.ApplicationCall | |
import io.ktor.application.call | |
import io.ktor.http.HttpMethod | |
import io.ktor.routing.Route | |
import io.ktor.routing.Routing | |
import io.ktor.routing.route | |
import kotlin.reflect.KFunction | |
import kotlin.reflect.full.callSuspendBy | |
import kotlin.reflect.full.declaredMemberFunctions | |
import kotlin.reflect.jvm.javaType |
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
<canvas id="buienradar" width="453" height="120"></canvas> | |
<script type="text/javascript"> | |
function request() { | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.onreadystatechange = function() { | |
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) | |
doDraw(xmlHttp.responseText); | |
} | |
xmlHttp.open("GET", "https://graphdata.buienradar.nl/forecast/json/?lat=52.16&lon=4.49", true); // true for asynchronous |
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
package subside.plugins.koth; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; |
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
{ | |
"PREFIX": "&3[KOTH] &b", | |
"COMMAND_AREACREATED": "You successfully created the area %area%!", | |
"KOTH_STARTING": "The koth %area% has begun!", | |
"KOTH_PLAYERCAP": "%player% has started to cap %area%!", | |
"KOTH_WON": "The koth %area% ended! %player% won!", | |
"KOTH_CAPTIME": "%player% is capping the koth! %minutes_left%:%seconds_left% left!", | |
"KOTH_LEFT": "%player% left the koth!", | |
"AREA_ALREADYEXISTS": "The area %area% already exists!", | |
"COMMAND_AREAREMOVED": "You've successfully removed the area %area%!", |
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
package subside.plugins.koth; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; |