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
// ==UserScript== | |
// @name Qase Gherkin | |
// @version 0.1 | |
// @description add syntax highlighting to Qase | |
// @author github.com/foso | |
// @match https://app.qase.io/run/* | |
// @match https://app.qase.io/case/* | |
// @match https://app.qase.io/project/APP20* | |
// @icon https://qase.io/favicon.png | |
// @grant none |
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 androidx.compose.desktop.AppWindow | |
import androidx.compose.foundation.Text | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.material.Button | |
import androidx.compose.runtime.mutableStateOf | |
import androidx.compose.runtime.remember | |
import java.awt.BorderLayout | |
import javax.swing.JButton | |
import javax.swing.JLabel | |
import javax.swing.JPanel |
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
/** | |
* A [PreviewParameterProvider] that combines two providers. The output will be a [Pair] containing | |
* both Results | |
*/ | |
open class PreviewParameterCombiner<T, U>( | |
private val provider: Pair<PreviewParameterProvider<T>, PreviewParameterProvider<U>> | |
) : PreviewParameterProvider<Pair<T, U>> { | |
override val values: Sequence<Pair<T, U>> | |
get() = provider.first.values.flatMap { first -> | |
provider.second.values.map { second -> |
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 android.util.Log | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.currentComposer | |
import androidx.compose.runtime.remember | |
import androidx.compose.ui.unit.IntBounds | |
import androidx.ui.tooling.CallGroup | |
import androidx.ui.tooling.Group | |
import androidx.ui.tooling.NodeGroup | |
import androidx.ui.tooling.asTree |
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 entriesOf(jsObject: dynamic): List<Pair<String, Any?>> = | |
(js("Object.entries") as (dynamic) -> Array<Array<Any?>>) | |
.invoke(jsObject) | |
.map { entry -> entry[0] as String to entry[1] } | |
fun mapEntriesOf(jsObject: dynamic): Map<String, Any?> = | |
entriesOf(jsObject).toMap() |
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
val c = Class.forName("de.jensklingenberg.jetpackcomposeplayground.ui.samples.mysamples.other.CounterModelKt") | |
val m = c.getDeclaredMethod("CounterModelDemo") | |
m.invoke(null) |
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<androidx.ui.tooling.preview.ComposeViewAdapter | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |
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
@Composable | |
fun TextView(text: String) { | |
val context = +ambient(ContextAmbient) | |
Text(text) | |
} | |
@Composable | |
fun SimpleTextView(){ |
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 de.jensklingenberg | |
import de.jensklingenberg.mpapt.common.simpleName | |
import de.jensklingenberg.mpapt.model.AbstractProcessor | |
import de.jensklingenberg.mpapt.model.Element | |
import de.jensklingenberg.mpapt.model.RoundEnvironment | |
import de.jensklingenberg.mpapt.utils.KotlinPlatformValues | |
import org.jetbrains.kotlin.name.Name | |
import org.jetbrains.kotlin.platform.TargetPlatform |
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
<activity | |
android:name="SettingsActivity" | |
android:label="@string/app_name"> | |
<intent-filter> | |
<action android:name="android.intent.action.APPLICATION_PREFERENCES" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
</intent-filter> | |
</activity> |
NewerOlder