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 swipe { | |
AppiumDriver dr; | |
swipe() { | |
this.dr = MobileDriverFactory.getDriver() | |
} | |
private scrollList() { | |
ArrayList listElement = dr.findElementsByClassName(" isi element recyclerView / scrollView nya ") | |
TouchAction touchAction = new TouchAction(dr) |
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
< reference types = "Cypress" / > | |
let identity | |
describe(`Channel Regular ${env.type}`, () => { | |
it('Restore Access Token', () => { | |
cy.getAccessToken().then((res) => { | |
console.log(res.body.access_token) | |
}) |
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
#nama workflow | |
name: Node.js CI | |
on: | |
#ketika ada push ke branch spesifik, dan PR ke branch spesifik maka workflow akan berjalan | |
#bila ada push atau PR ketika workflow sedang berjalan maka tidak akan masuk queue | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "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
class CaptureActivity : AppCompatActivity(), LocationListener { | |
override fun onProviderDisabled(provider: String) { | |
AlertDialog.Builder(this).apply { | |
setTitle("GPS Signal Not Found") | |
setMessage("Pastikan fitur GPS pada perangkat anda aktif ketika menggunakan aplikasi ini") | |
setCancelable(true) | |
setPositiveButton("Back") { dialogInterface: DialogInterface, _: Int -> | |
dialogInterface.dismiss() | |
finish() |
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 fun onProviderDisabled(provider: String) { | |
AlertDialog.Builder(this).apply { | |
setTitle("GPS Signal Not Found") | |
setMessage("Pastikan fitur GPS pada perangkat anda aktif ketika menggunakan aplikasi ini") | |
setCancelable(true) | |
setPositiveButton("Back") { dialogInterface: DialogInterface, _: Int -> | |
dialogInterface.dismiss() | |
finish() | |
} | |
}.show() |
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
#!/bin/sh | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
TIMEOUT=${TIMEOUT-60} | |
APP_ROOT=/path/to/your/app/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
ENVIRONMENT=production |