Skip to content

Instantly share code, notes, and snippets.

View pertamaks's full-sized avatar
🦎
Samlekoom

Andreas pertamaks

🦎
Samlekoom
View GitHub Profile
@pertamaks
pertamaks / palindrome.rb
Created May 15, 2019 01:54
Test Palindrome JDS
def is_palindrome(word)
lower = word.downcase
if lower == lower.reverse
p 'Word is Palindrome'
else
p 'Word is not Palindrome'
end
end
is_palindrome('Deleveled')
@pertamaks
pertamaks / appi.py
Last active July 31, 2019 05:23
Opo ya, semacam environment webdriver python buat appium kali ya, **Prereq: Appium, Selenium**
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as ec
from selenium.common.exceptions import NoSuchElementException
class Apiyum(object):
__TIMEOUT = 10
def __init__(self, driver):