Skip to content

Instantly share code, notes, and snippets.

View phynet's full-sized avatar
🤘
I said yeah.

Sofia Swidarowicz phynet

🤘
I said yeah.
View GitHub Profile
@phynet
phynet / Jenkins Mac OS X configuration.md
Last active June 4, 2022 16:27
Jenkins Mac OS X configuration

Jenkins Mac OS X configuration

First, copy the plist file from (take note, that the number 1,590 may vary in each machine)

/usr/local/Cellar/jenkins/1.590

to LaunchAgent folder:

cp /usr/local/Cellar/jenkins/1.590/homebrew.mxcl.jenkins.plist /Users/medianet/Library/LaunchAgents 
@phynet
phynet / Reload terminal.md
Last active November 8, 2016 13:30
Reload terminal

###Reload terminal

source ~/.bash_profile

@phynet
phynet / Install APK file using Gradle and Command Line in simulators or devices.md
Last active December 22, 2022 16:16
Install APK file using Gradle and Command Line

Listar los puertos en escucha:

lsof -i | grep -E "(LISTEN|ESTABLISHED)"

Listar los procesos

ps -ef | grep java

ps -ef | grep jenkins

@phynet
phynet / WebViews queries to navigate in calabash-ios-android.md
Last active November 8, 2016 13:28
Query calabash-ios-android With Webviews

##Query Calabash-ios-android with WebViews

query("webView css:'*'")
query("webView css:'input[name=\"btn\"]'")
query("webView css:'#idName'")

query("webView css:'.calssname")

##Launch Appium

After installation...execute:

node /usr/local/bin/appium

@phynet
phynet / Calabash-Android Runtime error.md
Last active November 8, 2016 13:26
Calabash-android RuntimeError

##Calabash-Android error

When you create a new app and want to use calabash-android, it's necessary to add in Android Manifest the next line:

<uses-permission android:name="android.permission.INTERNET" />

Otherwise you'll see a Runtime error like this one:

App did not start (RuntimeError)
/Library/Ruby/Gems/1.8/gems/calabash-android-0.4.3/lib/calabash-android/operations.rb:364:in `start_test_server_in_background'
@phynet
phynet / AppleWatch-Table.md
Last active July 12, 2016 08:02
Create Table Apple Watch with swift 2
    override func awakeWithContext(context: AnyObject?) {
        super.awakeWithContext(context)
        
        let arrayValues = ["Sofia", "Oriana", "Helena", "Maria"]
        
        table.setNumberOfRows(arrayValues.count, withRowType: "TableRowControllerID") //ID that with use in XIB to identifier the table
        
 for (index, arrayVal) in EnumerateSequence(arrayValues){
@phynet
phynet / gist:57b3c6548dd8948423f9
Last active August 29, 2015 14:24
Swift Cheat Page

##Extension A Swift extension is similar to an Objective-C category. Extensions expand the behavior of existing classes, structures, and enumerations, including those defined in Objective-C.

extension Double {
   var km: Double { return self * 1_000.0 }
   var m: Double { return self }
   var cm: Double { return self / 100.0 }
   var mm: Double { return self / 1_000.0 }
   var ft: Double { return self / 3.28084 }

}