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
using System; | |
namespace HolaMundo | |
{ | |
class ClaseFactorial | |
{ | |
private int numero; | |
public static void Main (string[] args) |
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
using System; | |
namespace HolaMundo | |
{ | |
public class CalculaFacorial | |
{ | |
public int calcularFacorial (int numero) | |
{ | |
int facorial=1; |
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.irving.cares; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import com.irving.cares.webservices.WebServiceLogin; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.app.Activity; |
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 | |
public boolean onKey(View v, int keyCode, KeyEvent event) { | |
if ((event.getAction() == KeyEvent.ACTION_DOWN) && | |
(keyCode == KeyEvent.KEYCODE_ENTER)) { | |
Log.i("TAG","Click en enter"); | |
return true; | |
} | |
return 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
package com.irving.cares.webservices; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.ParseException; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; |
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.irving.cares.webservices; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
import org.apache.http.HttpResponse; |
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 Constantes { | |
private static String algunaCadena; | |
public static String getAlgunaCadena() { | |
return algunaCadena; | |
} | |
public static void setAlgunaCadena(String algunaCadena) { | |
Constantes.algunaCadena = algunaCadena; |
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.io.ByteArrayOutputStream; | |
import java.util.ArrayList; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.util.Base64; | |
public class ImageUtil { |
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.enova.broadcast; | |
import com.enova.bibliotecadigital.PantallaLogin; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.util.Log; |
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
def fizz_count(lista): | |
contador=0; | |
for i in lista: | |
if i == "fizz": | |
contador=contador+1 | |
return contador |
OlderNewer