Skip to content

Instantly share code, notes, and snippets.

View paulfranco's full-sized avatar

Paul Franco (he/him) paulfranco

View GitHub Profile
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'
// 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"
@paulfranco
paulfranco / Kotlin Error
Created March 20, 2019 08:17
Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7
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"
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)
@paulfranco
paulfranco / IAM.txt
Last active July 5, 2018 08:28
AWS Certified Developer - Identity Access Management
1. What is IAM?
- IAM allows you to manage users and their level of access to the AWS Console.
2. What does IAM give you?
- Centralized control of your AWS account
- Shared Access to your AWS account
- Granular Permissions
- Identity Federation (including Active Directory, Facebook, LinkedIn, etc)
- Multifactor Authenthication
- Provides temporary access for the users/devices and services, as necessary
@paulfranco
paulfranco / gist:d8728e523db988966681ab92011947dc
Last active July 4, 2018 10:22
Android Fragment Life Cycle Questions.txt
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?
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
# -*- 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