Seattle, WA
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
The Fragment Life Cycle is composed of 11 Methods (The first 6 of them are also Activity Life methods): | |
1. onCreate | |
2. onStart | |
3. onResume | |
4. onPause | |
5. onStop | |
6. onDestroy | |
7. onAttach | |
8. onCreateView | |
9. onActivityCreated |
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
1. Which lifecycle method should we use if we want to do some work in our Fragment immediately after the Activity has been all setup. | |
Answer: onActivityCreated | |
2. Which lifecycle method is called when a Fragment is disassociated from its Activity. | |
Answer: onDetach | |
3. Fragments have all the same lifecycle methods as an Activity as well as five lifecycle methods of their own. | |
Answer: True | |
4. Which is the very first Fragment lifecycle method to be called when adding a Fragment for the first time? |
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
Driver driver = new GooglePlayDriver(context); | |
FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(driver); | |
Job myJob = dispatcher.newJobBuilder() | |
// the JobService that will be called | |
.setService(MyJobService.class) | |
// uniquely identifies the job | |
.setTag("complex-job") | |
// one-off job | |
.setRecurring(false) |
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
Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7 | |
Replace : implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | |
with : implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
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
// project > build.gradle | |
//inside dependencies | |
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha05" | |
// app > build.gradle | |
// Plugins | |
apply plugin: 'kotlin-kapt' | |
apply plugin: "androidx.navigation.safeargs" |
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
Gradle configuration | |
Add this in your project level build.gradle file | |
Under buildscript | |
ext.coroutines_version = "1.3.0" | |
ext.room_version = "2.2.2" | |
ext.glide_version = "4.8.0" | |
ext.nav_version = "2.1.0" | |
ext.daggerVersion = '2.14.1' |
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
// | |
// main.swift | |
// protocols and delegates | |
// | |
// Created by Paul Franco on 8/16/20. | |
// | |
protocol EmergencyMedicalTechnician { | |
func performCPR() | |
} |
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
Extract Variable = command Option V | |
Run Test = Control Shirt R | |
Extract Method = Highlight Code then Command Option M or Control Alt M (Windows) | |
Go To Test or Create New test if none exists = Command Shift T |
OlderNewer