Skip to content

Instantly share code, notes, and snippets.

@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 23:51
Firebase - Lesson 4 - Many to Many : Option D
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userLists" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 23:51
Firebase - Lesson 4 - Many to Many : Option C
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
}
},
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 23:50
Firebase - Lesson 4 - Many to Many : Option B
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
}
},
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 23:49
Firebase - Lesson 4 - Many to Many : Option A
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userLists" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 22:32
Firebase - Lesson 4 - Fix Nests : Suggestion 5
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userFriends" : {
@udacityandroid
udacityandroid / styles.xml
Last active May 24, 2017 12:45
Android for Beginners : Themes Solution
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- App branding color for the app bar -->
<item name="colorPrimary">#009688</item>
<!-- Darker variant for the status bar and contextual app bars -->
<item name="colorPrimaryDark">#00796B</item>
<!-- Theme UI controls like checkboxes and text fields -->
<item name="colorAccent">#536DFE</item>
@udacityandroid
udacityandroid / firebase-data.json
Created January 26, 2016 08:47
Firebase - Lesson 5 - Rules and Datastructure for Account Merge Example
{
"acknowledge" : {
"merges" : {
"accepted" : {
"898dac5d-f99d-463a-b82a-54abd5784447" : "google:106385094246122969144"
},
"proposed" : {
"898dac5d-f99d-463a-b82a-54abd5784447" : "google:106385094246122969144"
}
},
@udacityandroid
udacityandroid / MainActivity.java
Last active February 19, 2018 23:03
Android for Beginners : Localization Solution
package com.example.android.justjava;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
@udacityandroid
udacityandroid / MainActivity.java
Last active March 13, 2018 13:13
Android for Beginners : Let Someone Else do the Hard Work Solution Java and XML
package com.example.android.justjava;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
@udacityandroid
udacityandroid / rules.json
Created January 20, 2016 20:14
Firebase - Lesson 5 - Example Validations
{
"rules": {
".read" : "true",
".write" : "true",
"userFriends": {
"$userEncodedEmail": {
"$friendEncodedEmail": {
".validate": "newData.hasChildren(['name', 'email', 'timestampJoined', 'hasLoggedInWithPassword'])",
"name": {