Skip to content

Instantly share code, notes, and snippets.

View ionixjunior's full-sized avatar

Ione Souza Junior ionixjunior

View GitHub Profile
@ionixjunior
ionixjunior / 0_reuse_code.js
Created July 3, 2016 13:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?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
using System.Threading.Tasks;
using System.Windows.Input;
using Core.Interfaces;
using Xamarin.Forms;
namespace Core.ViewModels
{
public class Page1ViewModel : BaseViewModel
{
public ICommand GotoPage2Command =>
using System.Threading.Tasks;
namespace Core.Interfaces
{
public interface INavigationHelper
{
Task GotoPage2();
}
}
using Core.Helpers;
using Core.Interfaces;
using Core.Views;
using Xamarin.Forms;
namespace Core
{
public partial class App : Application
{
public App()
using System;
using System.Threading.Tasks;
using Core.Interfaces;
using Core.Views;
using Xamarin.Forms;
namespace Core.Helpers
{
public class NavigationHelper : INavigationHelper
{
@ionixjunior
ionixjunior / mediawiki-install
Last active December 21, 2016 01:15
MediaWiki installation for Ubuntu
# Dependencies
apt-get -y install php5
apt-get -y install php5-mysql
apt-get -y install php5-gd
apt-get -y install php5-intl
apt-get -y install php-apc
apt-get -y install apache2
apt-get -y install libapache2-mod-php5
apt-get -y install mysql-server
apt-get -y install mysql-client
...
namespace Droid
{
public class MainActivity : FormsAppCompatActivity
{
private static string _newTheme;
private static bool _canChangeTheme = false;
protected override void OnCreate(Bundle bundle)
@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 / 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