Skip to content

Instantly share code, notes, and snippets.

View ionixjunior's full-sized avatar

Ione Souza Junior ionixjunior

View GitHub Profile
using System;
using Xamarin.Forms.Platform.Android;
using Xamarin.Forms;
using Core.Droid.Renders;
using Core.Controls;
using Android.Widget;
[assembly: ExportRenderer (typeof (CustomImageCell), typeof (CustomImageCellRenderer))]
namespace Core.Droid.Renders
{
@ionixjunior
ionixjunior / AssemblyInfo.cs
Created June 22, 2016 16:41
AssemblyInfo sample
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Xamarin.Forms.Xaml;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Core")]
@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
{
...
namespace Droid
{
public class MainActivity : FormsAppCompatActivity
{
private static string _newTheme;
private static bool _canChangeTheme = false;
protected override void OnCreate(Bundle bundle)
@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