Skip to content

Instantly share code, notes, and snippets.

View wsrzx's full-sized avatar
🏠
Working from home

William Rodriguez wsrzx

🏠
Working from home
View GitHub Profile
@wsrzx
wsrzx / TheViewController.cs
Created June 26, 2017 13:16
UIView Tap Command Binding using MvvmCross
// add using MvvmCross.Binding.iOS.Views.Gestures;
var set = this.CreateBindingSet<TheViewController, TheViewModel>();
set.Bind (TheControl.Tap()).For(t => t.Command).To(vm => vm.TheCommand);
set.Apply();
@wsrzx
wsrzx / NavigationBarRenderer.cs
Created September 21, 2017 23:00
iOS 11 Large Titles in Xamarin.Forms
using System;
using MyApp.iOS;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(NavigationPage), typeof(NavigationBarRenderer))]
namespace MyApp.iOS
{
public class NavigationBarRenderer : NavigationRenderer
{
@wsrzx
wsrzx / MyLargeTitlePage.cs
Last active November 8, 2017 10:50
Novidades do iOS e Xamarin.Forms
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace iOSEleven
{
public partial class MyLargeTitlePage : ContentPage
{
public MyLargeTitlePage()
{
InitializeComponent();
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace iOSEleven
{
public partial class MyLargeTitlePage : ContentPage
{
public MyLargeTitlePage()
{
InitializeComponent();
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace iOSEleven
{
public partial class MyUseSafeAreaPage : ContentPage
{
public MyUseSafeAreaPage()
{
InitializeComponent();
<?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:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true" >

Keybase proof

I hereby claim:

  • I am willbuildapps on github.
  • I am willbuildapps (https://keybase.io/willbuildapps) on keybase.
  • I have a public key ASCjgMA37ED9jL3LMSzM41mLVnNpMAFvnGvdDYmkSG4EYAo

To claim this, I am signing this object:

@wsrzx
wsrzx / PushTagUpdate.cs
Created June 12, 2018 10:54
Atualização de tags no Azure Notification Hubs
//https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.notificationhubs.partialupdateoperation?view=azure-dotnet
var partialUpdates = new List<PartialUpdateOperation>();
PartialUpdateOperation replaceTag = new PartialUpdateOperation();
replaceTag.Operation = UpdateOperationType.Replace;
replaceTag.Path = "/tags/coxinha";
replaceTag.Value = "kibe";
partialUpdates.Add(replaceTag);
@wsrzx
wsrzx / mac_high_sierra_py_dev.md
Created June 27, 2018 15:24
Mac OS High Sierra Python Dev Environment Setup

Install iTerm2

Download and install https://www.iterm2.com/

Install the Xcode Command Line Tools directly from the command line

xcode-select --install

Install Hombrew

using System;
using Newtonsoft.Json;
namespace AwesomeSeries.Models
{
public class Serie
{
[JsonProperty("original_name")]
public string OriginalName { get; set; }