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 android.annotation.SuppressLint; | |
import android.app.Activity; | |
import android.support.v7.widget.CardView; | |
import android.view.View; | |
import android.widget.GridLayout; | |
import android.widget.TextView; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; |
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
@Override | |
protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
EventBus.getInstance().postQueue(new Event(requestCode, resultCode, data)); | |
if (requestCode == EDIT && resultCode == RESULT_OK) { | |
Log.d("EDIT", "RESULT_OK"); | |
UserEntity userEntity = (UserEntity) data.getSerializableExtra("USER"); |
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
#Ruby | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile |
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 GalletaDeChipsChocolate{ | |
private int chips; | |
private String marca; | |
/*Método crear una nueva galleta de chocolate de una marca*/ | |
public GalletaDeChipsChocolate(String nuevaMarca){ | |
marca = nuevaMarca; | |
} | |
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 GalletaDeChipsChocolate{ | |
int chips; /**Variabla de tipo entero: 1, 120, 8396*/ | |
double peso; /**Variabla de tipo real, admite decimales: 1.4, 83.28*/ | |
String marca; /**Variabla de tipo cadena: "Chips Ahoy", "Nestle"*/ | |
} |
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
/*Método para obtener la cantidad de chips que tiene mi galleta | |
* Este método retornará un entero(int) | |
* Su nombre es getChips | |
* No tiene valores de entrada | |
* En su cuerpo retorna la variable chips | |
*/ | |
public int getChips(){ | |
return chips; | |
} |
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
private static final int POS_AUTHORIZATION = 1554; | |
Intent intent = getPackageManager().getLaunchIntentForPackage("com.kony.mydream.visanet.peru"); | |
intent.putExtra("MONEY", 0.5f); | |
intent.putExtra("EMAIL", "briancastillo008@gmail.com"); | |
startActivityForResult(intent, POS_AUTHORIZATION); |
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
Intent intent = new Intent(); | |
intent.putExtra("BEAN", mposBean.toString()); | |
setResult(RESULT_OK, intent); | |
finish(); |
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 void Init(Function fun){ | |
this.fun=fun; | |
int layout = KonyMain.getActivityContext().getResources().getIdentifier("imsign_container","layout", KonyMain.getActivityContext().getPackageName()); | |
int pinpadID = KonyMain.getActivityContext().getResources().getIdentifier("mainSignaturePadv2","id",KonyMain.getActivityContext().getPackageName()); | |
KonyMain.getActivityContext().setContentView(layout); | |
sign = new IMSign(KonyMain.getActivityContext(), KonyMain.getActivityContext().findViewById(pinpadID)); | |
} |
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 void Init(Function fun){ | |
this.fun=fun; | |
SignaturePad signaturePad = (SignaturePad)KonyMain.getActivityContext().findViewById(pinpadID); | |
KonyMain.getActivityContext().setContentView(signaturePad); | |
} | |
OlderNewer