Skip to content

Instantly share code, notes, and snippets.

View ufukhawk's full-sized avatar

Ufuk ufukhawk

View GitHub Profile
@ufukhawk
ufukhawk / gist:82eb21e7fbc8c959a1630edd553ba192
Created September 21, 2021 11:51
all countries and provinces json
We couldn’t find that file to show.
@ufukhawk
ufukhawk / all_countries_and_provinces.json
Created September 21, 2021 11:48
All Countries and Provinces
This file has been truncated, but you can view the full file.
[
{
"id": 1,
"name": "Afghanistan",
"emoji": "🇦🇫",
"emojiU": "U+1F1E6 U+1F1EB",
"state": [
{
"id": 3870,
"name": "Ghazni",
void main() {
// createEmptyList();
// createListWithGivenLengthAndValue();
// createListWithNNumberOfElements();
// generateListWithLength();
// createListUnmodifiable();
//getFirstElement();
// isEmpty();
// getLastElement();
// reverseMyList();
using Microsoft.Extensions.DependencyInjection;
using Shiny;
namespace BluetoothPrintSample
{
public class ShinyAppStartup : Shiny.ShinyStartup
{
public override void ConfigureServices(IServiceCollection services)
{
services.UseBleCentral();
[assembly: ExportRendererAttribute(typeof(IconView), typeof(IconViewRenderer))]
namespace IconApp.iOS.Renderers
{
public class IconViewRenderer : ViewRenderer<IconView, UIImageView>
{
private bool _isDisposed;
protected override void Dispose(bool disposing)
{
[assembly: ExportRendererAttribute(typeof(IconView), typeof(IconViewRenderer))]
namespace IconApp.Droid.Renderers
{
public class IconViewRenderer : ViewRenderer<IconView, ImageView>
{
private bool _isDisposed;
public IconViewRenderer()
{
public class IconView : View
{
#region ForegroundProperty
public static readonly BindableProperty ForegroundProperty = BindableProperty.Create(nameof(Foreground), typeof(Color), typeof(IconView), default(Color));
public Color Foreground {
get {
return (Color)GetValue (ForegroundProperty);
}
private void OnDiscoveryClicked(object sender, System.EventArgs e)
{
if (App.Current.MainPage is TabbedPage mainPage && sender is Button button)
{
mainPage.CurrentPage = mainPage.Children[0];
Tab1.TextColor = Color.Gray;
Tab2.TextColor = Tab3.TextColor = Color.DarkGray;
}
}
namespace XamarinFloatingTabs.iOS.Renderers
{
public class CustomTabbedPageRenderer : TabbedRenderer
{
private UIView _overlayTabView;
protected override void OnElementChanged(VisualElementChangedEventArgs e)
{
base.OnElementChanged(e);
Element.PropertyChanged += OnElementPropertyChanged;
using CoreAnimation;
using CoreGraphics;
using GadientColorDemo.CustomControls;
using GadientColorDemo.iOS;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(GradientColorStack), typeof(GradientColorStackRenderer))]
namespace GadientColorDemo.iOS {
public class GradientColorStackRenderer: VisualElementRenderer <StackLayout> {
public override void Draw(CGRect rect) {