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
| package net.russianword.android | |
| /** | |
| * Created by igushs on 4/25/16. | |
| */ | |
| class Translator { | |
| private var indentLevel = 0 | |
| private fun writeLn(s: String) { |
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
| 1. Назовите основные периоды греческой философии. | |
| Космологический (натурфилософский), антропологический, систематический, этическо-религиозный. Другая периодизация: досократики (ранняя классика), средняя классика (софисты, Сократ), высокая классика (Платон), зрелая классика (Аристотель), эпоха эллинизма, поздняя классика (римская эпоха). | |
| 2. Какие проблемы были поставлены первыми? | |
| Натурфилософские. | |
| 3. Какой вопрос был поставлен прежде всего? |
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
| StackOverflow: | |
| Really good: | |
| http://stackoverflow.com/questions/37394266/how-can-i-force-calls-to-some-constructors-functions-to-use-named-arguments | |
| Really nice hack with Nothing type. | |
| http://stackoverflow.com/questions/5007357/java-generics-bridge-method | |
| Good explanation with enough links for further reading provided. | |
We can't make this file beautiful and searchable because it's too large.
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
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",точка|расположение|координаты|местоположение|пункт|арена|аул | |
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",весь|город|губерния|деревня|ипподром|колония|край | |
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",крепость|манеж|местечко|местность|область|околица|околоток | |
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",окраина|округ|площадь|поле|полоса|поляна|поместье | |
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",помещение|поприще|поселение|поселок|пост|простор|пространство | |
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",район|ристалище|село|станица|станция|столица|сторона | |
| 1,substitutions,1464773446253,1_1,multiple,"Небо ясно, под небом *места* много всем.",страна|территория|трек|уголок|уезд|урочище|хутор | |
| 1,substitutions,1464773446253,1_1,mult |
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
| "C:\Program Files\Java\jdk1.8.0_74\bin\java" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 162.74.16\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_74\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\zipfs.jar;C:\Program |
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 java.util.* | |
| import kotlin.reflect.KMutableProperty1 | |
| fun <T> KMutableProperty1<T, Date>.addDays(receiver: T, nrOfDays: Int) { | |
| val cal = Calendar.getInstance() | |
| cal.time = this.get(receiver) | |
| cal.add(Calendar.DAY_OF_YEAR, nrOfDays) | |
| this.set(receiver, cal.time) | |
| } |
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 java.util.* | |
| /** | |
| * Represents a rectangular matrix of doubles | |
| * Created by Sergey on 19.02.2015. | |
| */ | |
| data class Matrix(val rows: List<List<Double>>) { | |
| constructor(vararg rows: List<Double>): this(rows.toList()) |
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
| package ru.ifmo.ctddev.igushkin.ml.lab2 | |
| /** | |
| * Created by Sergey on 19.02.2015. | |
| * Represents an n-dimensional vector | |
| */ | |
| data class Vector(val components: List<Double>) : Cloneable { | |
| constructor(vararg components: Double): this(listOf(*components.toTypedArray())) |
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
| package com.github.h0tk3y.kotlinFun | |
| import java.util.* | |
| /** | |
| * @param T Receiver [Comparator]'s items type and resulting [Comparator]'s [Iterable] item type. | |
| * @receiver Original [Comparator] to use in lexicographical ordering to compare the items. | |
| * | |
| * @return [Comparator] that imposes lexicographical ordering on [Iterable]s of [T]. | |
| * The resulting [Comparator] is consistent with equals when the [Iterable] implementations |
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
| package kotlinx.coroutines | |
| import java.util.* | |
| class RootIterator<T>(iterator: NestedIterator<T>) : AbstractIterator<T>() { | |
| private val stack = Stack<Iterator<T>>().apply { push(iterator) } | |
| override fun computeNext() { | |
| while (true) { | |
| if (stack.isEmpty()) { |