Andrew Gazelka
01/11/2019, 3:52 PMInterpolationMap
(interpolates numbers put in) and an EvenInterpolationMap
(which also puts in (-key,value)), does it make sense for EIM
to extend IM
? If so, then how would I handle having non-final methods in the constructor? The current signature is constructor(baseMap: Map<Double,Double>){putAll(baseMap)}
Bernhard
01/11/2019, 3:55 PMBernhard
01/11/2019, 3:55 PMhudsonb
01/11/2019, 3:58 PMfilterNotNull()
Bernhard
01/11/2019, 5:54 PMdagguh
11/03/2020, 8:43 AM@since
overrides explicit primary constructor @since
(at least in IJ):
/**
* @since 1.2.3
*/
class Foo
/**
* @since 4.5.6
*/
constructor()
dagguh
11/03/2020, 8:56 AM@constructor @since
doesn't recognize it as a tag
/**
* @since 1.2.3
* @constructor @since 4.5.6
*/
class Foo()
user
11/03/2020, 10:14 AMuser
11/03/2020, 4:35 PMuser
11/03/2020, 4:53 PMArnab
11/04/2020, 7:18 AMAlexander Klimov
11/04/2020, 11:37 AMAnaniya
11/04/2020, 11:43 AMPOST <https://api.eu-gb.language-translator.watson.cloud.ibm.com/instances/XXXXXXX-c497-406d-9ea0-ae0253820616/v3/translate?version=2018-05-01>
Authorization: Basic apikey a31c_12usVFPhhF2z9iLokWp-XXXXXXXXXXX
Content-Type: application/json
{"text": ["Hello, world.", "How are you?"], "model_id":"en-es"}
###
hopefully it worked but after i implement my code like this with okhttp(kotlin)
val client = OkHttpClient()
val json = """{"text": ["Hello, world.", "How are you?"], "model_id":"en-es"}"""
val request = RequestBody.create(MediaType.get("application/json; charset=utf-8"),json)
val response = Request.Builder()
.url("<https://api.eu-gb.language-translator.watson.cloud.ibm.com/instances/XXXXXXXX-c497-406d-9ea0-ae0253820616/v3/translate?version=2018-05-01>")
.addHeader("Authorization","Basic apikey a31c_12usVFPhhF2z9iLokWp-XXXXXXXXXXX")
.post(request)
.build()
val answer = client.newCall(response).execute().body()!!.string()
println(answer)
it start throwing error from the server, i don't know if i put the POST wronglyuser
11/05/2020, 9:57 AMuser
11/05/2020, 1:22 PMPacane
11/05/2020, 2:59 PM?.
or !!
if possibleuser
11/05/2020, 4:12 PMandylamax
11/05/2020, 5:23 PMkotlin-jvm,kotlin-js,kotlin-android,kotlin-multiplatform
libraries to maven-central
?
I already have an OSSHR setup, its just the signing, the sources, the javadoc. Makes it a bit harder for me
I tried their guides. But all of their guides tend to use maven
gradle plugin and not maven-publish
which is the one in kotlin docs.
Help please. This is day 2 of hustling with very little progressdf
11/05/2020, 6:33 PMtestInstance::class.memberProperties.find { ... }.call(my_value)
the way to go?user
11/05/2020, 7:53 PMgroostav
11/05/2020, 9:29 PM@file:Suppress("Intention:Stop auto importing things")
user
11/06/2020, 12:42 PMuser
11/06/2020, 2:10 PMArcticLampyrid
11/07/2020, 2:54 PMbjonnh
11/07/2020, 10:31 PMdf
11/08/2020, 3:16 PMV Badalyan
11/09/2020, 7:58 AMMax Gorbunov
11/09/2020, 11:17 AM