Skip to content

Instantly share code, notes, and snippets.

View abhinavraj23's full-sized avatar
🎯
Focusing

Abhinav Raj abhinavraj23

🎯
Focusing
View GitHub Profile
mAuth.signInWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "signInWithEmail:success");
FirebaseUser user = mAuth.getCurrentUser();
updateUI(user);
} else {
@Override
public void onStart() {
super.onStart();
// Check if user is signed in (non-null) and update UI accordingly.
FirebaseUser currentUser = mAuth.getCurrentUser();
updateUI(currentUser);
}
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "createUserWithEmail:success");
FirebaseUser user = mAuth.getCurrentUser();
updateUI(user);
} else {
private FirebaseAuth mAuth;
// ...
// Initialize Firebase Auth
mAuth = FirebaseAuth.getInstance();
dependencies {
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.google.firebase:firebase-firestore:21.1.1'
}
apply plugin: 'com.google.gms.google-services'
buildscript {
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
}
dependencies {
@abhinavraj23
abhinavraj23 / GitandGithub.md
Last active February 20, 2019 13:24
Introduction to GIt and Github

Topics to be covered

  • What is git and it's application
  • Git bash installation for windows
  • A brief on open source
  • Basic git commands
    • Git init
    • Git push and pull
    • Git clone
    • Git status
  • Git remote add origin
@abhinavraj23
abhinavraj23 / GSoC-18_Abhinav.md
Last active January 29, 2019 16:41
GSoC 2018 Final Report and Code

GSoC 2018 Report, Pocket Science Lab, Abhinav Raj - FOSSASIA

This Summer, I worked on FOSSASIA's Pocket Science Lab Android. Pocket Science Lab is an Open Source hardware device (open on all layers). The Android App for PSLab aims to run PSLab device in android smartphones. Pocket Science Lab enables the user to perform various experiments and study a wide range of phenomena.

During the Google Summer of Code I with my fellow developers worked to develop Pocket Science Lab Android Application. Pocket Science Lab Android as the name suggests brings the whole science lab to your pocket by giving users various functionalities like Oscilliscope, Wave Generator, Power Souce, Multimeter, Logical analyzer, Luxmeter etc. via Android Smartphone.

GSoC Link