This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using System.Windows.Input; | |
using Core.Interfaces; | |
using Xamarin.Forms; | |
namespace Core.ViewModels | |
{ | |
public class Page1ViewModel : BaseViewModel | |
{ | |
public ICommand GotoPage2Command => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Core.Helpers; | |
using Core.Interfaces; | |
using Core.Views; | |
using Xamarin.Forms; | |
namespace Core | |
{ | |
public partial class App : Application | |
{ | |
public App() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
namespace Droid | |
{ | |
public class MainActivity : FormsAppCompatActivity | |
{ | |
private static string _newTheme; | |
private static bool _canChangeTheme = false; | |
protected override void OnCreate(Bundle bundle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Core | |
{ | |
public class YourClass | |
{ | |
private Task _taskInitAsync; | |
public YourClass() | |
{ | |
_taskInitAsync = TaskInitAsync(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |