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 / WhiteCard.doc
Last active December 1, 2023 01:59
White Card Exam
Areas Abbreviation Capital
New South Wales NSW Sydney
Queensland QLD Brisbane
South Australia SA Adelaide
Tasmania TAS Hobart
Victoria VIC Melbourne
Western Australia WA Perth
► Work Health and Safety Act 2011
  
   
  
    
       
             
                     
     
@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;
@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 / 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 / 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 / OAuth2AuthenticatorEx.cs
Created February 4, 2019 01:49
Xamarin.Auth "Authentication Error: Invalid state from server. Possible forgery!" workaround
public class OAuth2AuthenticatorEx : OAuth2Authenticator
{
protected override void OnPageEncountered(Uri url, IDictionary<string, string> query, IDictionary<string, string> fragment)
{
// Remove state from dictionaries.
// We are ignoring request state forgery status
// as we're hitting an ASP.NET service which forwards
// to a third-party OAuth service itself
if (query.ContainsKey("state"))
{
@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"
},