Skip to content

Instantly share code, notes, and snippets.

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

Aimoré aimore

🏠
Working from home
View GitHub Profile
  
   
  
    
       
             
                     
     
@aimore
aimore / form.json
Created June 11, 2021 04:56
Form json response mock
{
"fields": [{
"placeholder": "Insert name",
"title": "Field 1",
"validation": "[A-Za-z]",
"defaultValue": "Tester",
"type": "A"
},
{
"placeholder": "Insert Surname",
@aimore
aimore / nav_android.gif
Last active May 20, 2020 07:52
Demo Android Navigation
nav_android.gif
@aimore
aimore / BaseCommand.cs
Created May 13, 2020 06:02
Test base command class
using System;
using System.Windows.Input;
using static System.Math;
namespace Test.ViewModels
{
public class BaseCommand : ICommand
{
public event EventHandler CanExecuteChanged;
@aimore
aimore / exception.txt
Last active September 24, 2019 23:50
Exception Android binding
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiXmlGeneratorExtensions.Save (Xamarin.Android.Tools.ApiXmlAdjuster.JavaTypeParameters typeParameters, System.Xml.XmlWriter writer, System.String indent) [0x000f0] in <bc1fe201558a400c810274a0a29f9006>:0
at Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiXmlGeneratorExtensions.SaveCommon (Xamarin.Android.Tools.ApiXmlAdjuster.JavaMember m, System.Xml.XmlWriter writer, System.String elementName, System.String abs, System.String native, System.String ret, System.String sync, System.String transient, System.String type, System.String typeGeneric, System.String value, System.String volat, Xamarin.Android.Tools.ApiXmlAdjuster.JavaTypeParameters typeParameters, System.Collections.Generic.IEnumerable`1[T] parameters, System.Collections.Generic.IEnumerable`1[T] exceptions, System.Nullable`1[T] extBridge, System.String jniReturn, System.Nullable`1[T]
{
"home": {
"promoCards": [
{
"title": "Lecker Burger",
"address": "Cheesy pizza 30% off and you get a second free",
"image": "https://d3i4yxtzktqr9n.cloudfront.net/web-eats/static/images/homepage/burger-image-550-0f1a479683.png",
"rigthWidget": "OPEN",
"leftWidget": "4.5"
},
@aimore
aimore / strings.json
Last active June 30, 2019 07:14
XamFood Strings Json
{
"appName": "Joe's",
"isPremium": false,
"styles": {
"backgroundColor": "#fefcfa",
"promoTitleColor": "#1b1b1b",
"tabBarColor": "#fefcfa",
"categoryTitleColor": "#fefcfa",
"descriptionColor": "",
"rightWidgetColor": "",
@aimore
aimore / IdentityServerHelper.swift
Last active January 4, 2021 16:36
IdentityServer4 helper for swift 4
//
// IdentityServerHelper.swift
// Example
//
// Aimore Sa on 5/6/19.
//
import Foundation
import AppAuth
@aimore
aimore / extension.cs
Created May 30, 2019 02:00
Image source extension xamarin
[ContentProperty(nameof(Source))]
public class ImageResourceExtension : IMarkupExtension
{
public string Source { get; set; }
public object ProvideValue(IServiceProvider serviceProvider)
{
if (Source == null)
{
return null;
@aimore
aimore / PdfConverteriOS.cs
Last active August 15, 2022 08:16
html to PDF
using System;
using System.Drawing;
using System.IO;
using CatCatalog.iOS.Services;
using CatCatalog.Services;
using CoreGraphics;
using Foundation;
using UIKit;
using Xamarin.Forms;