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
@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")]
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
{
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:control="clr-namespace:Core.Controls;assembly=Core"
x:Class="Core.Views.HomeView"
Title="Home">
<ContentPage.Content>
<TableView Intent="Menu">
<TableRoot>
<TableSection>
using System;
using Xamarin.Forms;
namespace Core.Controls
{
public class CustomImageCell : ImageCell
{
}
}
<TableView Intent="Menu">
<TableRoot>
<TableSection>
<ViewCell>
<StackLayout Padding="15, 5, 15, 5" Orientation="Horizontal">
<Image Source="location.png" />
<Label Text="Localização" VerticalOptions="Center" />
</StackLayout>
</ViewCell>
@ionixjunior
ionixjunior / xf-tableview-imagecell.xaml
Last active April 27, 2016 01:23
ImageCell padrão no Xamarin Forms
<TableView Intent="Menu">
<TableRoot>
<TableSection>
<ImageCell ImageSource="location.png" Text="Localização" />
<ImageCell ImageSource="settings.png" Text="Configurações" />
<ImageCell ImageSource="email.png" Text="E-mail" />
</TableSection>
</TableRoot>
</TableView>
@ionixjunior
ionixjunior / nodejs-install.sh
Last active September 13, 2015 03:24
NodeJS install
#!/bin/sh
sudo apt-get install -y nodejs
sudo apt-get install -y npm
#node
#nodejs-legacy
@ionixjunior
ionixjunior / install_mysql_5_5_centos.md
Last active September 3, 2015 03:48 — forked from jhjguxin/install_mysql_5_5_centos.md
Install MySQL Database 5.5.37 on CentOS 6.5/5.10, Red Hat (RHEL) 6.5/5.10

Install MySQL Database 5.5.37 on CentOS 6.5/5.10, Red Hat (RHEL) 6.5/5.10

1.change user

su

2.Install Remi repository

@ionixjunior
ionixjunior / moodle-install.sh
Last active September 3, 2015 03:24
Moodle installation for Cent OS 6.5
#!/bin/sh
# Warning: this script it is unfinished.
MYSQL_ROOT_PASSWORD=12345
MYSQL_MOODLE_PASSWORD=12345
yum -y update
# Expect
yum -y install expect