Bin e padrões para validação de cartão de crédito.
| Bandeira | Começa com | Máximo de número | Máximo de número cvc |
|---|---|---|---|
| Visa | 4 | 13,16 | 3 |
| Mastercard | 5 | 16 | 3 |
| import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.launch | |
| class ResultAsync<T> private constructor(action: suspend () -> T, scope: CoroutineScope) { | |
| internal var onSuccess : (T) -> Unit = {} | |
| internal var onError : (e: Throwable) -> Unit = {} | |
| companion object { | |
| fun <T> with(action: suspend () -> T, scope: CoroutineScope) :ResultAsync<T>{ |
| import android.animation.Animator; | |
| import android.animation.AnimatorListenerAdapter; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.ValueAnimator; | |
| import android.graphics.Point; | |
| import android.os.Build; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.annotation.RequiresApi; | |
| import android.support.v4.view.animation.FastOutSlowInInterpolator; |
| /* | |
| * Copyright 2017 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| $ git remote rm origin | |
| $ git remote add origin [email protected]:aplikacjainfo/proj1.git | |
| $ git config master.remote origin | |
| $ git config master.merge refs/heads/master |