Skip to content

Instantly share code, notes, and snippets.

View christianmalek's full-sized avatar

Christian Malek christianmalek

  • Fraunhofer IESE
  • Germany
  • 17:41 (UTC +02:00)
View GitHub Profile
firebase.auth().onAuthStateChanged( user => {
if (user) {
// If user state changes and 'user' exists, check Firebase Database for user
const userReference = db.ref(`users/${user.uid}`);
userReference.once('value', snapshot => {
if (!snapshot.val()) {
// User does not exist, create user entry
userReference.set({
email: user.email,
displayName: user.displayName
@christianmalek
christianmalek / how_to_git.md
Created July 2, 2017 12:47 — forked from fetttobse/how_to_git.md
How to git in agile projects

How to Git

A Git workflow for agile development.

Step 1: Pull from master

First pull from master, to have the latest version of the repo: git pull origin master

Step 2: Checkout a feature branch

Checkout a feature branch, name it with the issue id of the story you are working on and a short description. For example if you are working on #42: User can upload pictures, do something like