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
e: Compilation failed: Index: 1, Size: 1 | |
* Source files: DI.kt, PrefsDebtDao.kt, UseCase.kt, GetDebt.kt, DebtDao.kt, Debt.kt, Debt.kt, ScreenPresenter.kt, IosDI.kt | |
* Compiler version info: Konan: 1.3 / Kotlin: 1.3.40 | |
* Output kind: FRAMEWORK | |
e: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 | |
at java.util.ArrayList.rangeCheck(ArrayList.java:653) | |
at java.util.ArrayList.get(ArrayList.java:429) | |
at org.jetbrains.kotlin.ir.types.IrTypesKt.makeKotlinType(irTypes.kt:92) |
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
abstract class Foo<TViewState : FooState> { | |
open inner class ViewStateProxy : FooState | |
} | |
interface FooState | |
class Bar : Foo<FooState>() { | |
fun bar() = ViewStateProxy() | |
} |
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 'dart:async'; | |
import 'dart:convert'; | |
import 'package:http/http.dart'; | |
class Detector { | |
// Географические координаты датчика | |
double lat; // Широта | |
double lon; // Долгота | |
int toxicity; // Токсичность в условных единицах |
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
[ | |
{ | |
"productsUrl": "https://gist.githubusercontent.com/a-dminator/22993c39ab0d7a74c4b8f951945d9234/raw/76a2affa80cb3cb0c83e6ab7b2e84318da77e272/products_food.json", | |
"name": "Еда", | |
"imageUrl": "http://www.good-cook.ru/articles/2016/07/16-1-domashnyaya-eda.jpg" | |
}, | |
{ | |
"productsUrl": "https://gist.githubusercontent.com/a-dminator/22993c39ab0d7a74c4b8f951945d9234/raw/76a2affa80cb3cb0c83e6ab7b2e84318da77e272/products_chemicals.json", | |
"name": "Бытовая химия", | |
"imageUrl": "http://www.temakazan.ru/media/articles/1272/d8b403a38637f40b74b926b30eb940bc.jpg" |
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
abstract class Books( | |
val author: String, | |
val name: String, | |
val special: String, | |
val price: Double | |
) { | |
abstract fun printDescription() | |
} | |
abstract class Fiction( |
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
{ | |
"frameworkName": "Summer", | |
"author": "Kirill Terekhov", | |
"logoUrl": "https://i.ibb.co/V2HXXPC/41s-YBfo-EWBL.jpg" | |
} |
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
{ | |
"categories": [ | |
{ | |
"id": 0, | |
"title": "Овощи", | |
"url": "https://gist.githubusercontent.com/a-dminator/4e087fe7c82609e0a38352d6f54aac9f/raw/dc6cafa6f6b94f59aa297e17e5a294d51ef968d4/fruits.json" | |
}, | |
{ | |
"id": 1, | |
"title": "Фрукты", |
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 Sign.AND | |
import Sign.OR | |
import java.util.* | |
val keyWords = arrayOf('(', ')', '!', '&', '|') | |
fun main(args: Array<String>) { | |
val expressionSource = Scanner(System.`in`).next() |
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
val numberFormat = NumberFormat.getCurrencyInstance(Locale.FRENCH) | |
val decimalFormatSymbols = (numberFormat as DecimalFormat).decimalFormatSymbols | |
decimalFormatSymbols.currencySymbol = "\u20BD" | |
numberFormat.decimalFormatSymbols = decimalFormatSymbols | |
val a = numberFormat.format(9999999.99) |
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
{ | |
"products": [ | |
{ | |
"title": "Помидор", | |
"price": 42.99, | |
"imageUrl": "https://greenmylife-wpengine.netdna-ssl.com/wp-content/uploads/2014/06/HighYield-Tomato.jpg" | |
}, | |
{ | |
"title": "Огурец", | |
"price": 56.99, |
NewerOlder