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
public void Log(string message, [CallerMemberName] string memberName = "", [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0) | |
{ | |
Console.WriteLine($"[{memberName}({lineNumber}) in {filePath}]: {message}"); | |
} |
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
#!/bin/bash | |
# Check if the required tools are installed | |
if ! [ -x "$(command -v convert)" ]; then | |
echo "Error: convert tool is not installed." >&2 | |
exit 1 | |
fi | |
if ! [ -x "$(command -v androidsdkmanager)" ]; then | |
echo "Error: Android SDK Manager is not installed." >&2 |
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
#Check if the convert and iconutil tools are installed. These tools are part of the ImageMagick suite and are required to create the iconset and icns file. | |
#!/bin/bash | |
# Check if the required tools are installed | |
if ! [ -x "$(command -v convert)" ]; then | |
echo "Error: convert tool is not installed." >&2 | |
exit 1 | |
fi |
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.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using HOApp.Core; | |
using HOApp.Core.Localization; | |
using Newtonsoft.Json.Linq; | |
using Prism; | |
using Xamarin.Essentials; |
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
public static async Task<Version> GetITunesAppVersion() | |
{ | |
try | |
{ | |
string ITunesStoreURL = @"https://itunes.apple.com"; | |
string route = @"lookup?bundleId=com.cinc.hoapp"; | |
Version ITunesVersion = null; | |
using (var client = new HttpClient()) | |
{ |
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
private void ScrollToTop() | |
{ | |
if (app.Query(editButton).Any() && app.Query(editButton).FirstOrDefault().Text == "Done") //edit mode | |
{ | |
if (!app.Query(addButton).Any()) | |
app.ScrollUpTo("Gravity point"); | |
} | |
else | |
{ | |
var topItem = ""; |
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
<ToolbarItem | |
Order="Primary" | |
AutomationId="EmailButton" | |
Command="{Binding MailCommand}" | |
Priority="1" > | |
<ToolbarItem.IconImageSource> | |
<FontImageSource | |
FontFamily="{StaticResource FontAwesomeSolidFontFamily}" | |
Glyph="{x:Static constants:AppConstant.MailIcon}" | |
Color="{DynamicResource TertiaryTextColor}" |
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
private static bool IsPasswordValid(string password) | |
{ | |
return password.Any(char.IsUpper) && password.Any(char.IsLower) && password.Any(char.IsDigit) && password.Length is >= 8 and <= 16; | |
} |
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
<StackLayout Orientation="Vertical" Padding="30" Spacing="40"> | |
<BoxView HeightRequest="10"/> | |
<Image HorizontalOptions="Center" WidthRequest="300" Source="maco.jpg"/> | |
<Frame BackgroundColor="#BF043055" HasShadow="False"> | |
<StackLayout Orientation="Vertical" Spacing="10"> | |
<Entry x:Name="Email" Text="{Binding Email}" Placeholder="Email" | |
PlaceholderColor="White" HeightRequest="40" | |
Keyboard="Email" | |
TextColor="White"/> | |
<Entry x:Name="Password" Text="{Binding Password}" Placeholder="Senha" |
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.Tasks; | |
using Xamarin.Forms; | |
namespace NewYoutube.Services | |
{ | |
public class PageService : IPageService | |
{ | |
public async Task<bool> DisplayAlert(string title, string message, string ok, string cancel) | |
{ |
NewerOlder