Skip to content

Instantly share code, notes, and snippets.

@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 23:48
Firebase - Lesson 4 - Many to Many : Current Data Schema
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
}
},
@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 / shoppinglistplusplus.json
Created December 23, 2015 22:31
Firebase - Lesson 4 - Fix Nests : Suggestion 4
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"activeLists" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 22:30
Firebase - Lesson 4 - Fix Nests : Suggestion 3
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userFriends" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 22:25
Firebase - Lesson 4 - Fix Nests : Suggestion 2
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userFriends" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 22:17
Firebase - Lesson 4 - Fix Nests : Suggestion 1
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userFriends" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 23, 2015 21:48
Firebase - Lesson 4 - Failed Schema
{
"users" : {
"americanguyw1521@gmail,com" : {
"email" : "americanguyw1521@gmail,com",
"hasLoggedInWithPassword" : true,
"name" : "Walter Latimer",
"timestampJoined" : {
"timestamp" : 1447801255394
},
"userFriends" : {
@udacityandroid
udacityandroid / shoppinglistplusplus.json
Created December 17, 2015 00:04
Firebase - Lesson 4 - New Database Schema Design
{
"sharedWith" : {
"<list pid>" : {
"<person to share with email>" : {
"email" : "the user's encoded email; this should match the key",
"hasLoggedInWithPassword" : true,
"name" : "the first and last name of the user",
"timestampJoined" : {
"timestamp" : 1447801490493
}
@udacityandroid
udacityandroid / MainActivity.java
Created June 27, 2015 23:27
Android for Beginners : Menu Starter Code
package com.example.android.menu;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
@udacityandroid
udacityandroid / MainActivity.java
Created June 27, 2015 23:17
Android for Beginners : Menu Solution Code
package com.example.android.menu;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {