Skip to content

Instantly share code, notes, and snippets.

View trix0's full-sized avatar

trixo trix0

  • Copenhagen
View GitHub Profile
@trix0
trix0 / gist:f9e8e6efc267fdbab7b0999122ab5814
Created September 12, 2024 10:56
Kotlin Coroutines & Flows Masterclass, Coroutine basics Assignment #3
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
var birdName by remember {
mutableStateOf("Coo")
}
MyApplicationTheme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
@trix0
trix0 / gist:ebb712aa2b9a0dbdedd8ddb3d88d9fd7
Created September 12, 2024 09:57
Kotlin Coroutines & Flows Masterclass, Coroutine basics Assignment #2
GlobalScope.launch {
val cooBird = launch {
while (true){
delay(1000)
println("Coo")
}
}
val cawBird = launch {
while (true){
delay(2000)
@trix0
trix0 / gist:4c07dd16f77723de327663387d6b2e99
Created September 12, 2024 09:51
Kotlin Coroutines & Flows Masterclass, Coroutine basics Assignment #1
GlobalScope.launch {
repeat(4){
delay(1000)
println("Coo")
}
}
GlobalScope.launch {
repeat(4){
delay(2000)
println("Caw")
@trix0
trix0 / KARABINER win to mac slovak keyboard layout
Last active January 10, 2024 16:07
Programming symbols Windows slovak(QWERTZ) keyboard layout to mac for karabiner(import each json objects as a seperate rule)
{
"description": "write @",
"manipulators": [
{
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"right_option"
]
try{
console.log(testData)
let testName=testData.desCaps.testName
params=testData.desCaps.parameters;
let appPackage=params.appPackage;
let activityName=params.activityName;
let apkFileName=params.apkFileName;
2018-03-14 08:53:24:627 - info: [Appium] Welcome to Appium v1.8.0-beta3
2018-03-14 08:53:24:628 - info: [Appium] Non-default server args:
2018-03-14 08:53:24:629 - info: [Appium] port: 4002
2018-03-14 08:53:24:629 - info: [Appium] bootstrapPort: 6002
2018-03-14 08:53:24:629 - info: [Appium] log: /home/trixo/Code/AutomatedTesting/logs/237_CleanInstall_988678503543525154/Appium.log
2018-03-14 08:53:24:629 - info: [Appium] logTimestamp: true
2018-03-14 08:53:24:648 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4002
2018-03-14 08:53:24:675 - info: [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformName":"Android","deviceName":"Android","appPackage":"com.gorro.nothing","appActivity":"com.gorro.nothing.NothingActivity","fullReset":false,"noReset":true,"newCommandTimeout":120000,"skipUnlock":true,"androidInstallTimeout":150000,"systemPort":8202,"udid":"localhost:7409","requestO
This file has been truncated, but you can view the full file.
8950 4e47 0d0a 1a0a 0000 000d 4948 4452
0000 05a0 0000 0a00 0802 0000 00c8 9612
9800 0020 0049 4441 5478 01ec c10d 721b
d7c1 28d1 ee3b 20c5 a4b4 81ec 7f8f 2912
c0dc 7e83 2129 813f 9065 d97a 55f9 cae7
c83f fef1 8f7f fce3 1fff f8c7 3ffe f18f
7ffc e31f fff8 c7ff 3897 7fff 87df 286e
50f9 3d94 1f4a 6e90 9ddc 2028 b714 1f29
a052 7145 e32d 9177 e499 805c 939f 567c
2018-02-26 14:07:42:030 - info: [Appium] Welcome to Appium v1.8.0-beta3
2018-02-26 14:07:42:031 - info: [Appium] Non-default server args:
2018-02-26 14:07:42:032 - info: [Appium] port: 4001
2018-02-26 14:07:42:032 - info: [Appium] bootstrapPort: 6001
2018-02-26 14:07:42:032 - info: [Appium] log: /home/trixo/Code/javaRewrite/log4001.txt
2018-02-26 14:07:42:032 - info: [Appium] logTimestamp: true
2018-02-26 14:07:42:050 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4001
2018-02-26 14:07:42:079 - info: [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformName":"Android","deviceName":"Android","appPackage":"com.gorro.nothing","appActivity":"com.gorro.nothing.NothingActivity","fullReset":false,"noReset":true,"newCommandTimeout":120000,"skipUnlock":true,"androidInstallTimeout":150000,"udid":"localhost:7401","requestOrigins":{"url":"http://webdriver.io","version":"4.10.1","name":
2018-02-22 14:37:52:381 - info: [Appium] Welcome to Appium v1.8.0-beta3
2018-02-22 14:37:52:382 - info: [Appium] Non-default server args:
2018-02-22 14:37:52:383 - info: [Appium] port: 4004
2018-02-22 14:37:52:383 - info: [Appium] bootstrapPort: 6004
2018-02-22 14:37:52:383 - info: [Appium] log: /home/trixo/Code/javaRewrite/log4004.txt
2018-02-22 14:37:52:383 - info: [Appium] logTimestamp: true
2018-02-22 14:37:52:400 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4004
2018-02-22 14:37:52:431 - info: [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformName":"Android","deviceName":"Android","appPackage":"com.pointvoucher.playlondonpv","appActivity":"com.unity3d.player.UnityPlayerActivity","fullReset":false,"noReset":true,"newCommandTimeout":120000,"skipUnlock":true,"udid":"localhost:7401","requestOrigins":{"url":"http://webdriver.io","version":"4.10.1","name":"webdriverio"}
2018-02-22 11:56:36:232 - info: [Appium] Welcome to Appium v1.8.0-beta3
2018-02-22 11:56:36:233 - info: [Appium] Non-default server args:
2018-02-22 11:56:36:233 - info: [Appium] port: 4001
2018-02-22 11:56:36:234 - info: [Appium] bootstrapPort: 6001
2018-02-22 11:56:36:234 - info: [Appium] log: /home/trixo/Code/javaRewrite/log4001.txt
2018-02-22 11:56:36:234 - info: [Appium] logTimestamp: true
2018-02-22 11:56:36:258 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4001
2018-02-22 11:56:36:290 - info: [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformName":"Android","deviceName":"Android","appPackage":"com.pointvoucher.playlondonpv","appActivity":"com.unity3d.player.UnityPlayerActivity","fullReset":false,"noReset":true,"newCommandTimeout":120000,"skipUnlock":true,"udid":"localhost:7425","requestOrigins":{"url":"http://webdriver.io","version":"4.10.1","name":"webdriverio"}