Skip to content

Instantly share code, notes, and snippets.

View bikrone's full-sized avatar

Hai-Khanh Nguyen bikrone

View GitHub Profile
@bikrone
bikrone / List.java
Last active August 29, 2015 14:18
Java snippet
// Array list
List listA = new ArrayList();
listA.add("element 0");
listA.add("element 1");
listA.add("element 2");
//access via index
String element0 = listA.get(0);
String element1 = listA.get(1);
@bikrone
bikrone / Binding.xaml
Last active August 29, 2015 14:18
Windows phone snippet
<Page DataContext="{StaticResource ViewModel}">
<!-- Normal Binding -->
<TextBlock Text="{Binding Title}"/>
<!-- Binding a property of a propety object -->
<TextBlock Text="{Binding Project.Title}"/>
</Page>