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 eu.metatools.kfunnels.tests | |
import eu.metatools.kfunnels.* | |
/** | |
* Funnels and unfunnels Another. | |
*/ | |
object AnotherFunneler : GeneratedFunneler<Another> { | |
override val module = eu.metatools.kfunnels.tests.TestsModule |
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 eu.metatools.kfunnels.tests | |
import eu.metatools.kfunnels.* | |
/** | |
* Funnels and unfunnels Container. | |
*/ | |
object ContainerFunneler : GeneratedFunneler<Container<*, *>> { | |
override val module = eu.metatools.kfunnels.tests.TestsModule |
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 eu.metatools.kontor.serialization | |
import java.math.BigDecimal | |
import java.util.* | |
import kotlin.reflect.KClass | |
import kotlin.reflect.full.companionObjectInstance | |
import kotlin.serialization.* | |
import kotlin.serialization.internal.* | |
/** |
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 org.softlang.ura | |
/** | |
* Union type. | |
* @param T The type of the first option | |
* @param U The type of the second option | |
* @param isLeft True if the type is the first option | |
* @param it The value stored without explicit type information | |
*/ | |
data class Choice<out T, out U>(val isLeft: Boolean, val it: Any?) { |
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 ktsandbox | |
import javax.xml.crypto.Data | |
/** | |
* A data point, where first is the hidden state, and second is the observed | |
* state. | |
*/ | |
typealias DataPoint = Pair<Int, Int> |
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
@Override | |
public Optional<Vector3> pick(Properties properties, Matrix4 world, Ray ray) { | |
// Translate to local space | |
Ray localRay = ray.cpy().mul(world.cpy().inv()); | |
// Result vector and dot product | |
Vector3 result = null; | |
float resultDot = Float.POSITIVE_INFINITY; | |
// Intersect with all planes |
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 eu.metatools.risk; | |
import com.badlogic.gdx.math.Intersector; | |
import com.badlogic.gdx.math.Vector2; | |
public class Borderizer { | |
private static <T> T in(T[] t, int i) { | |
return t[((i % t.length) + t.length) % t.length]; | |
} |
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 java.util.function.BiConsumer; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
/** | |
* Created by Lukas Härtel on 14.02.14. | |
*/ | |
public class Pipes { | |
/** |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4"> | |
<component name="FacetManager"> | |
<facet type="android" name="Android"> | |
<configuration> | |
<option name="SELECTED_BUILD_VARIANT" value="Debug" /> | |
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" /> | |
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebug" /> | |
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleTest" /> | |
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" /> |