This file contains hidden or 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
curl -d '{ | |
"to": DEVICE_ID, | |
"notification": { | |
"title" : " This is my title new ", | |
"body" : " This is the body of my message " | |
} | |
}' \ | |
-i -H "Application/json" \ | |
-H "Content-type: application/json" \ | |
-H "Authorization: key=YOUR_AUTH_KEY \ |
This file contains hidden or 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 tv.standard.ui.view.custom | |
import android.content.Context | |
import android.graphics.Rect | |
import android.util.AttributeSet | |
import android.view.View | |
import androidx.core.widget.NestedScrollView | |
import androidx.recyclerview.widget.LinearLayoutManager | |
const val TAG = "MyNestedScroll" |
This file contains hidden or 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 io.topcars.feat.profile | |
import android.os.Bundle | |
import android.view.View | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.viewModels | |
import androidx.lifecycle.ViewModel | |
import dagger.Module | |
import dagger.Provides | |
import dagger.hilt.InstallIn |
This file contains hidden or 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
enum class ContributorType(val key: String, @StringRes val titleRes: Int) { | |
Founder("founder", 0), | |
Creator("creator", R.string.feat_profile_about_creator), | |
Designer("designer", R.string.feat_profile_about_designer), | |
Editor("editor", R.string.feat_profile_about_editor), | |
Reviewer("reviewer", R.string.feat_profile_about_reviewer), | |
AndroidDeveloper("android", R.string.feat_profile_about_android_developer), | |
BackendDeveloper("backend", R.string.feat_profile_about_backend_developer), | |
WebDeveloper("web", R.string.feat_profile_about_web_developer), | |
IosDeveloper("ios", R.string.feat_profile_about_ios_developer), |
This file contains hidden or 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
feat | |
authentication | |
login | |
- Localizable.strings | |
- LoginView | |
- LoginViewModel | |
signup | |
- Localizable.strings | |
- SignUpView | |
forgotPassword |
This file contains hidden or 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
extension Color { | |
init(hex: String) { | |
let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted) | |
var int: UInt64 = 0 | |
Scanner(string: hex).scanHexInt64(&int) | |
let a, r, g, b: UInt64 | |
switch hex.count { | |
case 3: // RGB (12-bit) | |
(a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17) | |
case 6: // RGB (24-bit) |
This file contains hidden or 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.thesocialnetwork | |
open class ElectronicDevice( | |
var brand: Brand = Brand.Unknown, | |
open val height: Float, | |
open val width: Float, | |
var model: String = "", | |
var color: Color = Color.Black | |
) { | |
override fun toString(): String { |
This file contains hidden or 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.thesocialnetwork | |
/** | |
* 0. What is an object? | |
* A structure with properties and methods | |
* | |
* 1.- Inheritance | |
* 2.- Polymorphism | |
* 3.- Abstraction | |
* 4.- Encapsulation |
This file contains hidden or 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.thesocialnetwork | |
data class Phone( | |
val width: Float, | |
val height: Float, | |
val brand: String, | |
val model: String, | |
val color: String, | |
val numberOfCameras: Int, |
This file contains hidden or 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.thesocialnetwork | |
/** | |
* Day 4 | |
* When, Function, if-else, cycles | |
* | |
* Program kitchen | |
*/ | |
fun main() { | |
println("Welcome to Lords") |
NewerOlder