Skip to content

Instantly share code, notes, and snippets.

View 15mgm15's full-sized avatar

Mario 15mgm15

  • Colima, Colima, México
View GitHub Profile
@15mgm15
15mgm15 / Toast.xaml
Last active December 23, 2022 21:22
<?xml version="1.0" encoding="utf-8" ?>
<mopups:PopupPage
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="SpotifyPlayer.Views.Toast"
xmlns:mopups="clr-namespace:Mopups.Pages;assembly=Mopups"
xmlns:animations="clr-namespace:Mopups.Animations;assembly=Mopups"
HeightRequest="48">
<mopups:PopupPage.Animation>
<animations:MoveAnimation
[{"id":"2","sku":"CE01765","Codigo_CU":"CE01765","title":"Ventilador de piso de 20 pulgadas","description":"Ventilador de piso de 20 pulgadas. Con base de gran estabilidad, los plásticos son polipropileno de alto brillo, giro vertical de 330 grados, alta velocidad y desplazamiento de aire de 105 m3 por minuto.","brand":"Man","category_id":"2","real_price":"828.00","price":"1240","points":"1240","img_product":"https://programasocioestrella.com/images/productos/73ff30b2dc8c3f193861e9bd77a352c1bb10fa69.jpg","type":"motivale"},{"id":"70","sku":"CE01833","Codigo_CU":"CE01833","title":"Tablet Tab 7","description":"Tablet Tab 7. Cuenta con pantalla de 7 pulgadas, 1GB, mediatek, arm cortex a53, quad core, 1.30ghz, 16GB, Android 7.0 nougat, 1280 x 720, tecnología de conmutación en el mismo plano, 4g, aspect ratio, admite micro SD, lan inalámbrica, bluetooth, arm mali, t720 gráficos, compatibilidad con wwan, sensor de vibración, acelerómetro, sensor l y GPS.","brand":"Lenovo","category_id":"12","real_price":"3721.36","
<Shell.FlyoutHeaderTemplate>
<DataTemplate>
<Grid BackgroundColor="Black" HeightRequest="200">
<Label Text="Shell Hands-on"
TextColor="White"
FontAttributes="Bold"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center" />
</Grid>
</DataTemplate>
Incident Identifier: F4BB9F78-142A-4DFA-9DCF-B68D96918BC8
CrashReporter Key: 692df07b64f1f5ae81f112fe5ac1d086a2b0d510
Hardware Model: iPhone10,4
Process: SchedulingTool.iOS [1758]
Path: /private/var/containers/Bundle/Application/27284FAE-076D-4B56-A497-140D33C52FDB/SchedulingTool.iOS.app/SchedulingTool.iOS
Identifier: com.rxvantage.Rxvantage.Iphone
Version: 2124 (3.3.1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
var functions = require('firebase-functions');
var admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
exports.sendNotification = functions.database.ref('/promotions/{promotion}')
.onCreate((snapshot, context) => {
const promotion = snapshot.val();
//const promotionId = promotion['id'];
const title = promotion['title'];
var topic = "all";
var payload = {
{
"id": 5,
"title": "Wall-Mart: Bacardi Blanco 40%",
"description": "Ron Bacardi Blanco por $79."
}
#!/usr/bin/env bash
#
# For Xamarin, run all NUnit test projects that have "Unit" in the name.
# The script will build, run and display the results in the build logs.
echo "Found NUnit test projects:"
find $APPCENTER_SOURCE_DIRECTORY -regex '.*Unit.*\.csproj' -exec echo {} \;
echo
echo "Building NUnit test projects:"
find $APPCENTER_SOURCE_DIRECTORY -regex '.*Unit.*\.csproj' -exec msbuild {} \;
var functions = require('firebase-functions');
var admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
exports.sendNotification = functions.database.ref('/promotions/{promotion}')
.onCreate((snapshot, context) => {
const promotion = snapshot.val();
//const promotionId = promotion['id'];
const title = promotion['title'];
var topic = "all";
var payload = {
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.notifyNewMessage = functions.firestore
.document('/promotions')
.onCreate(async (docSnapshot) => {
const promotion = docSnapshot.data();
//const recipientId = promotion['recipientId'];
const title = promotion['title'];
const payload = {
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
namespace XXXXXXXX
{
public class BaseViewModel : INotifyPropertyChanged
{