Skip to content

Instantly share code, notes, and snippets.

View ionixjunior's full-sized avatar

Ione Souza Junior ionixjunior

View GitHub Profile
@ionixjunior
ionixjunior / .gitconfig
Last active June 26, 2020 00:51
My simple .gitconfig
[alias]
st = status
ci = commit
br = branch
cia = commit --amend
cian = commit --amend --no-edit
df = diff
co = checkout
cl = clean -dfx
lg = log --oneline --graph
@ionixjunior
ionixjunior / referencias_talk_android_d8_r8_aapt2.txt
Last active October 4, 2019 02:53
Referências da talk sobre ferramentas do Android (D8, R8 e AAPT2).
- Entendendo IL - https://www.dotnetperls.com/il
- The Dex File Format - https://www.bugsnag.com/blog/dex-and-d8
- From Code to Dex: A Compilation Story - https://medium.com/upday-devs/from-code-to-dex-a-compilation-story-e1d62f63ad6a
- Xamarin Developer Summit talk - https://www.youtube.com/watch?v=ZxKNGW8Br0M&list=PLM75ZaNQS_FYkolOLIcZFi_3eSORFZxHx&index=3&t=0s
- DVM vs ART - https://android.jlelse.eu/closer-look-at-android-runtime-dvm-vs-art-1dc5240c3924
- Difference between DVM and ART - https://stackoverflow.com/questions/31957568/what-is-difference-between-dvm-and-art-why-dvm-has-been-officially-replaced-wi
- What are "sugar", "desugar" terms in context of Java 8? - https://stackoverflow.com/questions/22060894/what-are-sugar-desugar-terms-in-context-of-java-8
- A deep dive into Android’s D8 dexer and R8 shrinker with Xamarin - https://medium.com/@hakimgulamali88/a-deep-dive-into-androids-d8-dexer-and-r8-shrinker-with-xamarin-ca66e00b1c8d
- Next-generation Dex Compiler Now in Preview - https://android-d
@ionixjunior
ionixjunior / YourClass.cs
Created December 20, 2017 18:05
Teste de construtor assíncrono
namespace Core
{
public class YourClass
{
private Task _taskInitAsync;
public YourClass()
{
_taskInitAsync = TaskInitAsync();
}
@ionixjunior
ionixjunior / .gitlab-ci.yml
Created October 17, 2017 00:09
Exemplo de configuração do Gitlab CI. Ferramentas utilizadas: PHPMD, PHPCPD, PHPCS, PHPUnit e ApiDOC
image: php:5.6
cache:
paths:
- vendor/
stages:
- qa
- test
- doc
...
namespace Droid
{
public class MainActivity : FormsAppCompatActivity
{
private static string _newTheme;
private static bool _canChangeTheme = false;
protected override void OnCreate(Bundle bundle)
using System;
using System.Threading.Tasks;
using Core.Interfaces;
using Core.Views;
using Xamarin.Forms;
namespace Core.Helpers
{
public class NavigationHelper : INavigationHelper
{
using Core.Helpers;
using Core.Interfaces;
using Core.Views;
using Xamarin.Forms;
namespace Core
{
public partial class App : Application
{
public App()
using System.Threading.Tasks;
namespace Core.Interfaces
{
public interface INavigationHelper
{
Task GotoPage2();
}
}
using System.Threading.Tasks;
using System.Windows.Input;
using Core.Interfaces;
using Xamarin.Forms;
namespace Core.ViewModels
{
public class Page1ViewModel : BaseViewModel
{
public ICommand GotoPage2Command =>
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Core.Views.Page1View"
Title="Page 1"
>
<ContentPage.Content>
<StackLayout>
<Button