This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE java_todo; | |
CREATE TABLE `user` ( | |
`user_id` int NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) NOT NULL, | |
`email` varchar(255) NOT NULL UNIQUE, | |
`password` varchar(255) NOT NULL, | |
`online_status` varchar(10) NOT NULL DEFAULT 'offline', | |
PRIMARY KEY (`user_id`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
const db = admin.firestore(); | |
exports.setAbsetUsers = functions.pubsub.schedule('0 17 * * *') // mins - hours | |
.timeZone('Africa/Cairo') // Users can choose timezone - default is America/Los_Angeles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SignUpPresenter(view: SignUpContract.SignUpView, activity: Activity) : | |
SignUpContract.SignUpPresenter { | |
private val TAG = SignUpPresenter::class.java.simpleName | |
private val view: SignUpContract.SignUpView = view | |
private val activity = activity | |
private val auth = FirebaseAuth.getInstance() | |
private val db = Firebase.firestore | |
private val admin = Admin() | |
private val organization = Organization() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.android.quickquiz; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.widget.CheckBox; | |
import android.widget.EditText; | |
import android.widget.RadioButton; | |
import android.widget.Toast; |