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
--[[ | |
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
Example: | |
ProFi = require 'ProFi' | |
ProFi:start() | |
some_function() | |
another_function() | |
coroutine.resume( some_coroutine ) | |
ProFi:stop() |
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
somebody@somebodys-MacBook-Pro:~/repo/appium$ sudo `which grunt`; authorize | |
Password: | |
grunt-cli: The grunt command line interface (v1.2.0) | |
Fatal error: Unable to find local grunt. | |
If you're seeing this message, grunt hasn't been installed locally to | |
your project. For more information about installing and configuring grunt, | |
please see the Getting Started guide: |
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
package com.my.game; | |
import com.badlogic.gdx.ApplicationAdapter; | |
import com.badlogic.gdx.Game; // This import is reported as unused, but is needed for setScreen? | |
import com.badlogic.gdx.graphics.g2d.BitmapFont; | |
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | |
public class Main extends ApplicationAdapter { |
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
import io.appium.java_client.android.AndroidDriver; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
/** | |
* Altered frome the Calculator app example on http://www.guru99.com/introduction-to-appium.html |
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
public class CommonStepDefs { | |
Scenario scenario; // gets loaded with current scenario in @Before | |
@Before | |
public void before(Scenario scenario) | |
{ | |
CommonStepDefs.scenario = scenario; | |
//... setup and other stuff() | |
} |
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
george@testers-MacBook-Pro:~/gherkin-editor$ npm -v | |
3.10.3 | |
george@testers-MacBook-Pro:~/gherkin-editor$ node -v | |
v6.3.1 | |
george@testers-MacBook-Pro:~/gherkin-editor$ npm link | |
npm WARN prefer global [email protected] should be installed with -g | |
[email protected] /Users/george/gherkin-editor | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ └── [email protected] |
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
class Ob | |
{ | |
int x; | |
Ob(final int x) | |
{ | |
this.x = x; | |
} | |
public int getX() |
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
OUTPUT: | |
value1 | |
value2 | |
value3 | |
value4 |
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
// https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.22.2 | |
class BitwiseOperatorAsLogicalTest { | |
public static void main(String[] args) | |
{ | |
System.out.println("Bitwise AND operator still works as logical."); | |
System.out.println(true & true); | |
System.out.println(true & false); | |
System.out.println(false & true); | |
System.out.println(false & false); | |
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
import java.util.ArrayList; | |
import java.util.List; | |
class GrandParent {} | |
class Parent extends GrandParent {} | |
class Child extends Parent {} | |
class Grandchild extends Child {} | |
class Unrelated {} |
OlderNewer