This file contains hidden or 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
| final api = CovidAPI(); | |
| final values = await Future.wait([ | |
| api.getCases(), | |
| api.getRecovered(), | |
| api.getDeaths(), | |
| ]); | |
| print(values); // [1000, 100, 10] |
This file contains hidden or 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
| // Mock API class | |
| class CovidAPI { | |
| Future<int> getCases() => Future.value(1000); | |
| Future<int> getRecovered() => Future.value(100); | |
| Future<int> getDeaths() => Future.value(10); | |
| } |
This file contains hidden or 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 main() { | |
| for (var i = 1; i <= 5; i++) { | |
| print('🎄' * i); | |
| } | |
| } | |
| // Output: | |
| // 🎄 | |
| // 🎄🎄 | |
| // 🎄🎄🎄 | |
| // 🎄🎄🎄🎄 |
This file contains hidden or 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
| Text('Has presionado el botón tantas veces :' * 5) |
This file contains hidden or 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 discord | |
| from discord.ext import commands | |
| import datetime | |
| from urllib import parse, request | |
| import re | |
| bot = commands.Bot(command_prefix='>', description="This is a Helper Bot") | |
| @bot.command() |
This file contains hidden or 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
| {"lastUpload":"2021-07-19T02:00:30.621Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
| //assamby | |
| [assembly: UsesPermission(Android.Manifest.Permission.AccessCoarseLocation)] | |
| [assembly: UsesPermission(Android.Manifest.Permission.AccessFineLocation)] | |
| [assembly: UsesFeature("android.hardware.location", Required = false)] | |
| [assembly: UsesFeature("android.hardware.location.gps", Required = false)] | |
| [assembly: UsesFeature("android.hardware.location.network", Required = false)] | |
This file contains hidden or 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.Threading; | |
| using System.Windows.Input; | |
| using Xamarin.Essentials; | |
| using Xamarin.Forms; | |
| namespace Geolocalizacion.ViewModel | |
| { | |
| public class GeolocationViewModel : BaseViewModel | |
| { |
This file contains hidden or 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
| namespace Geolocalizacion.View | |
| { | |
| public partial class GeolocationPage : BasePage | |
| { | |
| public GeolocationPage() | |
| { | |
| InitializeComponent(); | |
| } | |
| } | |
| } |