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
<div *ngIf="socketConnection$ | async as status"> | |
<div *ngIf="status === 'disconnect'" class="lost-connection d-flex justify-content-center bg-warning p-2"> | |
Problemas de conección. Puede que la información se haya desincronizado. | |
</div> | |
</div> | |
<div class="container-fluid py-4" *ngIf="queue$ | async as queue; else loading"> | |
<div class="row py-3"> | |
<div class="col-8"> | |
<mat-card class="bg-white"> | |
<div [chart]="createTimeline(queue)"></div> |
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 'package:flutter/material.dart'; | |
import 'package:google_fonts/google_fonts.dart'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'EduTec Clase2', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
visualDensity: VisualDensity.adaptivePlatformDensity, | |
), |
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
const { execSync } = require('child_process'); | |
const stagedGitFiles = require('staged-git-files'); | |
stagedGitFiles((error, stagedFiles) => { | |
if (error) { | |
console.error(error); | |
process.exit(1); | |
} | |
if (stagedFiles && stagedFiles.length) { | |
const stagedAngularTSFiles = stagedFiles.filter( |
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
void _retrieveDynamicLink() async { | |
final PendingDynamicLinkData data = | |
await FirebaseDynamicLinks.instance.retrieveDynamicLink(); | |
final Uri deepLink = data?.link; | |
print('deepLink'); | |
print(deepLink); | |
if (deepLink != null) { | |
dynamic params = deepLink.path.split('/'); | |
print(params); | |
if (params[1] == 'candidato') { |
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
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const nodemailer = require('nodemailer'); | |
admin.initializeApp(); | |
const mailTransport = nodemailer.createTransport({ | |
service: 'gmail', | |
auth: { | |
user: '<Email Address>', | |
pass: '<Email Account Password>', | |
}, |
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
{} |
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
val ingredients: List<String> = listOf<String>( | |
"Agua", "Leche", "Carne", "Verduras", "Frutas", "Ceral", | |
"Huevos", "Aceite" | |
) | |
fun main(args: Array<String>) { | |
var option: Int = 0 | |
var recipes: MutableList<Recipe> = mutableListOf<Recipe>() | |
do { | |
mainMenu() |
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
class MainActivity extends AppCompatActivity { | |
... | |
FirebaseAnalytics analytics; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
... | |
analytics = FirebaseAnalytics.getInstance(this); | |
... | |
} | |
... |
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 MainActivity extends AppCompatActivity { | |
... | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
... | |
startService(new Intent(this, LocationService.class)); // Agregar en la launcher 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
package com.dev.museos.services; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.location.Location; | |
import android.location.LocationManager; | |
import android.os.Bundle; | |
import android.os.IBinder; | |
import android.support.annotation.Nullable; |
NewerOlder