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/bash | |
tput clear | |
echo -e "\n\n\n\n\n\n\n\n\n"; | |
echo ' mmmmm m m mmmmm m mmmm mmmmm mm m mmm" ' | |
echo ' # # # # # # # "m # #"m # m" " ' | |
echo ' #mmmm" # # # # # # # # #m # # mm ' | |
echo ' # # # # # # # # # # # # # # ' | |
echo ' #mmmm" "mmmm" mm#mm #mmmmm #mmm" mm#mm # ## "mmm" # # #' |
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
def prompt_user_select_difficulty(diffs_available): | |
difficulty_selected = raw_input( | |
"Please choose a difficulty:" | |
"\n\teasy" | |
"\n\tmedium" | |
"\n\thard" | |
"\n\texit\n> ").lower() | |
while difficulty_selected not in diffs_available: | |
difficulty_selected = raw_input("Please enter a valid difficulty\n> ").lower() |
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
difficulties_available = ['easy', 'medium', 'hard'] | |
answers_for = { | |
'easy' : [], | |
'medium': [], | |
'hard' : [] | |
} | |
prompts_for = { | |
'easy' : 'Easy prompt', |
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
daysOfMonths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
def number_of_days_between_months(m1, m2): | |
days = 0 | |
for month in range(m1, m2): | |
days += daysOfMonths[month] | |
return days | |
def days_alive(y1, m1, d1, y2, m2, d2): | |
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
require "selenium-webdriver" | |
driver = Selenium::WebDriver.for :chrome | |
driver.get('https://www.soul-cycle.com') | |
# login as your user - replace username and password | |
driver.find_element(:class, "log-in").click | |
sleep 1 | |
driver.find_element(:name, "email").send_keys("[email protected]") | |
driver.find_element(:name, "password").send_keys("tester") |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<AppiumAUT> | |
<UIAApplication name="" label="AYI" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0" x="0" y="20" width="320" height="548"> | |
<UIAWindow name="" label="" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0" x="0" y="0" width="320" height="568"> | |
<UIANavigationBar name="Connections" label="" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/0" x="0" y="20" width="320" height="44"> | |
<UIAImage name="" label="" value="" dom="" enabled="true" valid="true" visible="false" hint="" path="/0/0/0/0" x="0" y="0" width="320" height="64"> | |
<UIAImage name="" label="" value="" dom="" enabled="true" valid="true" visible="false" hint="" path="/0/0/0/0/0" x="0" y="64" width="320" height="0"> | |
</UIAImage> | |
</UIAImage> | |
<UIAButton name="Menu" label="Menu" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/0/1" x="5 |
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
def gather_failures | |
opts = "" | |
files = Dir.glob("*.failures") | |
files.each { |file| opts << File.read(file).gsub(/\n/, " ")} | |
all_failures = "./all.failures" | |
File.write(all_failures, opts.rstrip) | |
return File.read all_failures | |
end | |
def cleanup(files = "") |
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
# this file found in lib/ | |
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') | |
def instantiate_page_objects(driver) | |
@AndroidLandingPage = AndroidLandingPage.new(driver) | |
@AndroidLoginPage = AndroidLoginPage.new(driver) | |
end |
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
info: [ADB STDOUT] Error in testRunServer: | |
info: [ADB STDOUT] java.lang.NoSuchMethodError: com.android.uiautomator.core.UiDevice.getDisplayRotation | |
info: [ADB STDOUT] at io.appium.android.bootstrap.handler.Orientation.handleRotation(Orientation.java:95) | |
info: [ADB STDOUT] at io.appium.android.bootstrap.handler.Orientation.execute(Orientation.java:43) | |
info: [ADB STDOUT] at io.appium.android.bootstrap.AndroidCommandExecutor.execute(AndroidCommandExecutor.java:87) | |
info: [ADB STDOUT] at io.appium.android.bootstrap.SocketServer.runCommand(SocketServer.java:183) | |
info: [ADB STDOUT] at io.appium.android.bootstrap.SocketServer.handleClientData(SocketServer.java:91) | |
info: [ADB STDOUT] at io.appium.android.bootstrap.SocketServer.listenForever(SocketServer.java:134) | |
info: [ADB STDOUT] at io.appium.android.bootstrap.Bootstrap.testRunServer(Bootstrap.java:17) | |
info: [ADB STDOUT] at java.lang.reflect.Method.invokeNative(Native Method) |