Skip to content

Instantly share code, notes, and snippets.

View reinskywalker's full-sized avatar

Andre Reynaldi Lusikooy reinskywalker

View GitHub Profile
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)
< reference types = "Cypress" / >
let identity
describe(`Channel Regular ${env.type}`, () => {
it('Restore Access Token', () => {
cy.getAccessToken().then((res) => {
console.log(res.body.access_token)
})
#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" ]
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()
@reinskywalker
reinskywalker / kt
Created September 8, 2021 10:03
camera abstract
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()
@reinskywalker
reinskywalker / unicorn
Created September 22, 2020 08:53 — forked from shapeshed/unicorn
Unicorn / Monit setup
#!/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