Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Back to business

Evgeny Zborovsky yuv4ik

👨‍💻
Back to business
Block or report user

Report or block yuv4ik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yuv4ik
yuv4ik / ExtendedEntry.cs
Created May 5, 2017
Xamarin.Forms iOS Numeric Keyboard With 'Done' Button
View ExtendedEntry.cs
using Xamarin.Forms;
namespace YourNamespace.Controls
{
public class ExtendedEntry : Entry { }
}
@yuv4ik
yuv4ik / ContentPage.xaml
Last active Mar 26, 2019
Xamarin.Forms DatePicker with hours, minutes and seconds: TimeCountdownPicker
View ContentPage.xaml
/*
Xaml example.
*/
<?xml version="1.0" encoding="utf-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:YourNameSpace"
x:Class="YourNameSpace.ContentPage">
@yuv4ik
yuv4ik / README.md
Last active Nov 9, 2018
PCL@.NET Standard
View README.md
@yuv4ik
yuv4ik / Droid.LabelTextKerningEffect.cs
Last active May 29, 2018
Xamarin.Forms Android & iOS: LabelTextKerningEffect
View Droid.LabelTextKerningEffect.cs
using System.Linq;
using System.Text;
using Android.Text;
using Android.Text.Style;
using Android.Widget;
using MyNamespace.Effects;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using static Android.Widget.TextView;
@yuv4ik
yuv4ik / Droid.SettingsHelper.cs
Created May 2, 2018
[Xamarin.Forms] Open App Settings
View Droid.SettingsHelper.cs
public class SettingsHelper
{
public void OpenAppSettings()
{
var intent = new Intent(Android.Provider.Settings.ActionApplicationDetailsSettings);
intent.AddFlags(ActivityFlags.NewTask);
var uri = Android.Net.Uri.FromParts("package", package_name, null);
intent.SetData(uri);
Application.Context.StartActivity(intent);
}
@yuv4ik
yuv4ik / Startup.cs
Created Mar 3, 2018
.NET Standard 2.0 WEB.Api Firebase bearer token validation
View Startup.cs
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
@yuv4ik
yuv4ik / WebViewWithProgressBar.Droid.cs
Created Feb 25, 2018
Xamarin.Forms WebView with ProgressBar for iOS and Android
View WebViewWithProgressBar.Droid.cs
using Android.Content;
using WebViewWithProgressBar.Droid;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
// https://stackoverflow.com/a/8467430/1970317
[assembly: ExportRenderer(typeof(WebView), typeof(GenericWebViewRenderer))]
namespace WebViewWithProgressBar.Droid
{
public class GenericWebViewRenderer : WebViewRenderer
View git_after_gitignore_update.sh
/*
* First commit any outstanding code changes before executing this command.
* Source: https://stackoverflow.com/a/38451183/1970317
*/
git rm -r --cached .
git add .
git commit -m "Fix .gitignore by {UPDATE}"
@yuv4ik
yuv4ik / Droid.ClipboardService.cs
Created Jan 19, 2018
[Xamarin.Forms] [iOS] [Droid] IClipboardService to read and write text value from the Clipboard
View Droid.ClipboardService.cs
public class ClipboardService : IClipboardService
{
public string GetTextFromClipboard()
{
var clipboardmanager = (ClipboardManager)Forms.Context.GetSystemService(Context.ClipboardService);
var item = clipboardmanager.PrimaryClip.GetItemAt(0);
var text = item.Text;
return text;
}
@yuv4ik
yuv4ik / dot_net_clear_bin_obj_packages_dirs.sh
Last active Dec 27, 2017
[For .NET projects] Recursively find and delete bin, obj and packages directories
View dot_net_clear_bin_obj_packages_dirs.sh
# Recursively find and delete "bin", "obj" and "packages" dirs
# Backup your code before using this script, I am not responsible for any data loss. Please use it wisely.
find . -iname "bin" -o -iname "obj" -o -iname "packages" | xargs rm -rf
You can’t perform that action at this time.