Skip to content

Instantly share code, notes, and snippets.

View ahrherrera's full-sized avatar
🌙
Working

Allan Ramirez ahrherrera

🌙
Working
  • Managua, Nicaragua
View GitHub Profile
@ahrherrera
ahrherrera / cloudSettings
Last active August 10, 2020 18:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-10T18:20:49.173Z","extensionVersion":"v3.4.3"}
@ahrherrera
ahrherrera / principal.ts
Created December 19, 2019 19:42
Resume platform
this.platform.resume.subscribe((res) => {
if(this.resumed == false){
//your logic goes here
this.auth.getUserData().subscribe(()=>{
console.log("User updated successfully");
if (this.auth.userdata.afiliado.bloqueado) {
this.alertCtrl.create({
title: "Su usuario está bloqueado",
subTitle: "Mientras su usuario está bloqueado, no puede recibir ni aceptar órdenes. <br><br> Si cree que es un error, contáctese con soporte."
@ahrherrera
ahrherrera / page.ts
Created August 18, 2020 23:11
Para Subir imagenes a Firebase
const options : CameraOptions = {
quality: 50, // picture quality
destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE ,
correctOrientation: true
}
this.camera.getPicture(options) .then((imageData) => {
let imagen = {
titulo: 'imagen deposito',