I hereby claim:
- I am concertman on github.
- I am concertman (https://keybase.io/concertman) on keybase.
- I have a public key ASAHv0gT8JfHTHGFAUHUd61b8KZAxFigKismbM9bpyvjVwo
To claim this, I am signing this object:
def fib(n): #write the Fibonacci sequence up to n | |
"""Print a Fibonacci sequence up to n. """ | |
a, b = 0, 1 | |
while a < n: | |
print a, | |
a, b = b, a+b |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
% bundle install 6 ↵ ✹ ✭ | |
Fetching gem metadata from https://rubygems.org/........ | |
Fetching additional metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Bundler could not find compatible versions for gem "pry": | |
In Gemfile: | |
travis (~> 1.7.6) ruby depends on | |
pry (< 0.10, ~> 0.9) ruby | |
appium_console (>= 0) ruby depends on |
info: Launching instruments | |
info: [debug] Attempting to run app on real device with UDID [REDACTED] | |
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w [REDACTED] com.company.APP -e UIASCRIPT "/Users/tester/Library/Application Support/appium/bootstrap/bootstrap-d2703415b232aad0.js" -e UIARESULTSPATH /tmp/appium-instruments | |
info: [debug] And extra without-delay env: {} | |
info: [debug] And launch timeouts (in ms): {"global":90000} | |
info: [debug] [INST STDERR] 2015-06-30 11:19:21.790 instruments[71172:16656290] WebKit Threading Violation - initial use of WebKit from a secondary thread. | |
info: [debug] [INST STDERR] 2015-06-30 11:19:23.215 instruments[71172:16656204] Automation Instrument ran into an exception while trying to run the script. UIAScriptAge |
import XCTest | |
class USTAssert: XCTestCase { | |
func assertExistsWithWait(wait: NSTimeInterval, evaluatedWithObject object: AnyObject) -> XCTestExpectation { | |
let predicate = NSPredicate(format: "exists == true", argumentArray: nil) | |
let result = self.expectationForPredicate(predicate, evaluatedWithObject: object, handler: nil) | |
waitForExpectationsWithTimeout(wait, handler: nil) |
extension XCTestCase { | |
func AssertExistsWithWait(element: XCUIElement, file: String = __FILE__, line: UInt = __LINE__) { | |
let existsPredicate = NSPredicate(format: "exists == true", argumentArray: nil) | |
expectationForPredicate(existsPredicate, evaluatedWithObject: element, handler: nil) | |
waitForExpectationsWithTimeout(5.0) { (error) -> Void in | |
if (error != nil) { | |
let message = "Failed to find \(element) after 5 seconds." |
func AssertPredicateWithWait(element: XCUIElement, predicate: String, file: String = __FILE__, line: UInt = __LINE__) { | |
let existsPredicate = NSPredicate(format: "\(predicate) == true", argumentArray: nil) | |
expectationForPredicate(existsPredicate, evaluatedWithObject: element, handler: nil) | |
waitForExpectationsWithTimeout(5.0) { (error) -> Void in | |
if (error != nil) { | |
let message = "Failed to find \(element) after 5 seconds." | |
self.recordFailureWithDescription(message, inFile: file, atLine: line, expected: true) | |
} |
I hereby claim:
To claim this, I am signing this object: