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 ca.llamabagel.daynight; | |
import android.content.res.Configuration; | |
import android.os.Bundle; | |
import android.os.PersistableBundle; | |
import android.support.annotation.Nullable; | |
import android.support.v7.app.AppCompatActivity; | |
import android.widget.TextView; | |
public class MainActivity extends AppCompatActivity { |
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
fun main() { | |
val k = readLine()!!.toInt() | |
for (i in 0 until k) { | |
val s = readLine()!! | |
val t = readLine()!! | |
var offset = 0 | |
var answer = true | |
t.forEachIndexed { index, c -> |
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
// Common | |
const val RESOURCE_PATH = "./src/commonTest/resources" | |
expect class Resource(name: String) { | |
val name: String | |
fun exists(): Boolean | |
fun readText(): String | |
} |
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
/** | |
* Like a progress indicator, but drawn as an arc. | |
* | |
* @param progress The progress to indicate, or how much of the arc should be shaded, as a percentage | |
* @param color The color of the arc | |
* @param width The width of the stroke used to draw the arc | |
*/ | |
@Composable | |
fun ProgressArc( | |
progress: Float, |
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
@Component | |
abstract class AppComponent { | |
@Provides | |
protected fun test(): Test = Test("Inject") | |
abstract val application: Application | |
} |
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
class Test { | |
val names: List<String> | |
field: MutableList<String> = mutableListOf<String>() | |
fun doThing() { | |
names.add("Hello!") | |
} | |
} | |
fun main() { |
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
external class GeolocationCoordinates { | |
val latitude: Double | |
val longitude: Double | |
val altitutde: Double | |
val accuracy: Double | |
val altitudeAccuracy: Double | |
val heading: Double | |
val speed: Double | |
} |
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
{ | |
"description": "H3-java", | |
"properties": [ { "name": "v", "value": "4.1.1" } ], | |
"link": "https://github.com/uber/h3-java", | |
"dependencies": [ "com.uber:h3:$v" ], | |
"imports": [ | |
"com.uber.h3core.H3Core", | |
"com.uber.h3core.util.LatLng" | |
] | |
} |