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 isEmpty from "lodash/isEmpty"; | |
class EncoderDecoderUtils{ | |
constructor() { | |
} | |
encodeBase64(data: string): string{ | |
return Buffer.from(data).toString('base64'); | |
} |
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 kotlin.properties.ReadWriteProperty | |
import kotlin.reflect.KProperty | |
class RangeRegulator( | |
initialValue: Int, | |
private val minValue: Int, | |
private val maxValue: Int, | |
) : ReadWriteProperty<Any?, Int> { | |
var fieldValue = initialValue; |
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
class FillInTheBlankQuestion { | |
val questionText: String = "" | |
val answer: String = "" | |
val difficulty: String = "" | |
} | |
class TrueOrFalseQuestion { | |
val questionText: String = "" | |
val answer: Boolean = false | |
val difficulty: String = "" |
OlderNewer