This file contains hidden or 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
<LinearLayout | |
android:layout_height="match_parent" | |
android:layout_width="match_parent" | |
android:orientation="vertical" | |
android:background="#FFBC61" > | |
<TextView | |
android:text="Brian Castillo" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
This file contains hidden or 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
/* | |
* Copyright (C) 2014 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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); | |
} | |
This file contains hidden or 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 hidden or 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 hidden or 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", "[email protected]"); | |
startActivityForResult(intent, POS_AUTHORIZATION); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |