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; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using AGConnectAdmin; | |
using AGConnectAdmin.Messaging; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ |
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
if (isAppInstalled("com.google.android.apps.maps")) { | |
// Normal process | |
} else { | |
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com/maps/dir/Current+Location/-17.760294,-63.201106")); | |
startActivity(myIntent); | |
} | |
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 static boolean isGMSAvailable(Context context) { | |
return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == ConnectionResult.SUCCESS; | |
} |
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.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner e = new Scanner(System.in); | |
int n = e.nextInt(); | |
int c = 1; | |
int p = 2; | |
int divisor = 2; |
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
task bumperVersionPatch() { | |
group = 'bumper' | |
doLast { | |
def propertiesFile = file('gradle.properties') | |
def properties = new Properties() | |
properties.load(new FileInputStream(propertiesFile)) | |
def versionName = properties['evaVersionName'] | |
def versionCode = properties['evaVersionCode'].toInteger() |
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
UPLOAD=$(curl \ | |
-X POST --header 'Content-Type: application/json' \ | |
--header 'Accept: application/json' \ | |
--header 'X-API-Token: dbba7813bdefb700f087b37aa175921ad7171637' \ | |
'https://api.appcenter.ms/v0.1/apps/bootcamp.mobile.jala-gmail.com/Eva-CE/release_uploads') | |
echo "Upload response: $UPLOAD" | |
UPLOAD_ID=$(echo $UPLOAD | jq --raw-output '.upload_id') | |
echo "Upload ID: $UPLOAD_ID" | |
UPLOAD_URL=$(echo $UPLOAD | jq --raw-output '.upload_url') | |
echo "Upload URL: $UPLOAD_URL" |
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.microsoft.com/en-us/appcenter/distribution/uploading | |
UPLOAD=$(curl \ | |
-X POST --header 'Content-Type: application/json' \ | |
--header 'Accept: application/json' \ | |
--header 'X-API-Token: 123456789' 'https://api.appcenter.ms/v0.1/apps/a3dany/Android-Demo-CI/release_uploads') | |
echo "Upload response: $UPLOAD" | |
UPLOAD_ID=$(echo $UPLOAD | jq --raw-output '.upload_id') | |
UPLOAD_URL=$(echo $UPLOAD | jq --raw-output '.upload_url') | |
echo "Upload ID: $UPLOAD_ID" | |
echo "Upload URL: $UPLOAD_URL" |
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
image: openjdk:8-jdk | |
variables: | |
ANDROID_COMPILE_SDK: "29" | |
ANDROID_BUILD_TOOLS: "29.0.0" | |
ANDROID_SDK_TOOLS: "4333796" | |
before_script: | |
- apt-get --quiet update --yes | |
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 |
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
image: openjdk:8-jdk | |
variables: | |
ANDROID_COMPILE_SDK: "29" | |
ANDROID_BUILD_TOOLS: "29.0.0" | |
ANDROID_SDK_TOOLS: "4333796" | |
before_script: | |
- apt-get --quiet update --yes | |
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 |
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
Queue<Persona> cola = new PriorityQueue<Persona>(new Comparator<Persona>() { | |
@Override | |
public int compare(Persona o1, Persona o2) { | |
if (getValor(o1) > getValor(o2)) { | |
return -1; | |
} | |
if (getValor(o1) < getValor(o2)) { | |
return 1; | |
} | |
return 0; |
NewerOlder