Skip to content

Instantly share code, notes, and snippets.

View gwpantazes's full-sized avatar

George Pantazes gwpantazes

View GitHub Profile
@gwpantazes
gwpantazes / ProFi.lua
Last active August 29, 2015 14:22 — forked from perky/ProFi.lua
--[[
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()
@gwpantazes
gwpantazes / appiumSetupGruntErrors.txt
Created August 10, 2016 21:39
Appium Install Grunt Errors
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:
@gwpantazes
gwpantazes / Main.java
Created October 9, 2016 05:18
Why is setScreen broken?
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 {
@gwpantazes
gwpantazes / SimpleAppium.java
Last active October 17, 2016 00:10
Simple Appium Program in java with Setup, queries, and teardown.
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
@gwpantazes
gwpantazes / CommonStepDefs.java
Last active November 18, 2016 18:55
Hour long timeout during test suite Appium Bug
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()
}
@gwpantazes
gwpantazes / tryToRunGherkinEditor.log
Created January 21, 2017 00:00
Trying to Run gherkin-editor
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]
@gwpantazes
gwpantazes / FinalTrickleDownTest.java
Created May 17, 2017 15:57
Java final exploration of trickle down effects
class Ob
{
int x;
Ob(final int x)
{
this.x = x;
}
public int getX()
@gwpantazes
gwpantazes / Output
Created May 17, 2017 16:08
Java Properties with different Separators test
OUTPUT:
value1
value2
value3
value4
// 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);
@gwpantazes
gwpantazes / ParentChildPolymorphismDemo.java
Created July 13, 2017 22:28
Demonstrating that child classes can be in a list of Type Parent
import java.util.ArrayList;
import java.util.List;
class GrandParent {}
class Parent extends GrandParent {}
class Child extends Parent {}
class Grandchild extends Child {}
class Unrelated {}