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
asdads |
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 demo; | |
import io.cucumber.java.ParameterType; | |
import io.cucumber.java.en.Given; | |
import io.cucumber.java.en.Then; | |
import io.cucumber.java.en.When; | |
import io.cucumber.java8.En; | |
public class Steps implements En { |
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
@Composable | |
fun ScopesSample() { | |
Column(Modifier.fillMaxWidth()) { | |
Text("Hello") | |
Text("Porto") | |
Text( | |
modifier = Modifier.align(Alignment.End), // Alignment.Top will not compile | |
text = "xd" | |
) | |
} |
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 Pastry { | |
abstract fun accept(visitor: PastryVisitor) | |
} | |
class Beignet : Pastry() { | |
override fun accept(visitor: PastryVisitor) { | |
visitor.visitBeignet(this) | |
} | |
} |
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.concurrent.StructuredTaskScope; | |
import java.util.concurrent.StructuredTaskScope.Subtask; | |
public class JavaConcurrency { | |
public static void main(String[] args) { | |
try (final var scope = new StructuredTaskScope.ShutdownOnFailure()) { | |
System.out.println("Task is starting"); | |
Subtask<String> subtask = scope.fork(() -> fetchData()); | |
scope.join(); | |
final String result = subtask.get(); |
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
final _declarativeKotlinPluginPatterns = <RegExp>[ | |
RegExp('^\\s*id\\s*\\(?\\s*[\'"]kotlin-android[\'"]\\s*\\)?\\s*\$'), | |
RegExp( | |
'^\\s*id\\s*\\(?\\s*[\'"]org.jetbrains.kotlin.android[\'"]\\s*\\)?\\s*\$'), | |
]; | |
final lines = <String>[ | |
'id "kotlin-android"', | |
'id("kotlin-android")', | |
'id ( "kotlin-android" ) ', |
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
pipe: | |
name: Build and validate | |
steps: | |
- image: ghcr.io/cirruslabs/android-sdk:34 | |
#image: gradle:7.6.4-jdk11-alpine | |
build_script: | | |
sudo apt-get update | |
sudo apt-get install -y nodejs npm | |
./gradlew :maestro-cli:installDist | |
- image: eclipse-temurin:8-jre-alpine |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
for file in *.zip; do | |
version="$(echo "$file" | cut -d '-' -f 4 | cut -d '.' -f 1)" | |
new_dir="android-clt-$version" | |
echo "extracting file $file into $new_dir" | |
unzip -o -d "android-clt-$version" "$file" >/dev/null 2>&1 |
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 kotlinx.coroutines.* | |
suspend fun say(s: String) { | |
for (i in 1..5) { | |
delay(100L) | |
println(s) | |
} | |
} | |
fun main() = runBlocking { |
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 main | |
import ( | |
"crypto/hmac" | |
"crypto/sha256" | |
"encoding/base64" | |
"encoding/hex" | |
"fmt" | |
"strings" | |
) |
NewerOlder