Skip to content

Instantly share code, notes, and snippets.

View rogergcc's full-sized avatar
🏠
Working from home

Roger Colquehuanca rogergcc

🏠
Working from home
View GitHub Profile
package com.rogergcc.workplaycontacts.ui;
import android.content.Intent;
import android.content.IntentSender;
import android.graphics.BitmapFactory;
import android.location.Location;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
package com.rogergcc.workplaycontacts.helper;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.Service;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
@rogergcc
rogergcc / WebTokenActivity.java
Created October 7, 2022 19:30
google maps brodcast token
package com.example.s3k_user1.appzonas;
import static android.Manifest.permission.READ_PHONE_NUMBERS;
import static android.Manifest.permission.READ_PHONE_STATE;
import static android.Manifest.permission.READ_SMS;
import android.Manifest;
import android.app.Dialog;
import android.content.BroadcastReceiver;
import android.content.Context;
@rogergcc
rogergcc / TelegramBot.js
Created June 27, 2021 20:36
TelegramBot class for send .gs or js
class TelegramBot {
constructor(token) {
this.url = "https://api.telegram.org/bot" + token
//this.url = "https://api.telegram.org/bot" + token + "/"
}
getProp(key){
return PropertiesService.getScriptProperties().getProperty(key)
}
setProp(key, value) {
@rogergcc
rogergcc / GeofencesList
Created January 13, 2021 17:45
private ArrayList<LocationModel> locationModels = new ArrayList<>();
geofenceList.add(new Geofence.Builder()
// Set the request ID of the geofence. This is a string to identify this
// geofence.
.setRequestId(locationModel.getLat() + locationModel.getLon())
.setCircularRegion(
Double.parseDouble(locationModel.getLat()),
Double.parseDouble(locationModel.getLon()),
(float) Double.parseDouble(String.valueOf(documentSnapshot.getData().get("radius")))
)
.setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER)
@rogergcc
rogergcc / request.rest
Created October 24, 2020 23:06
request.rest REST Client for Visual Studio Code
@rogergcc
rogergcc / index.html
Created October 12, 2020 23:35
Loader-Demo
<div id="button1">
<button class="button" id="moviesfromapi" onclick="fetchApi()">Display</button>
</div>
<div hidden id="spinner"></div>
<div id="movieResult"></div>
import android.content.Context;
import android.content.SharedPreferences;
import com.google.gson.Gson;
import com.rogergcc.workplaycontacts.common.CommonAppUtils;
import java.lang.reflect.Type;
/**
* Singleton Class for accessing SharedPreferences,
@rogergcc
rogergcc / google-sheet-update.js
Last active November 16, 2020 17:16
Sheet as Webservice Api
const sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1')
function doGet(e){
const action = e.parameter.action;
//URL_SCRIPT/exec?action=getItems
if(action == 'getItems'){
return getItems(e);
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.