Skip to content

Instantly share code, notes, and snippets.

View FilipeLipan's full-sized avatar
🎯
Focusing

Filipe Schmidt FilipeLipan

🎯
Focusing
  • Curitiba Paraná
View GitHub Profile
@diefferson
diefferson / ResultAsync.kt
Last active November 28, 2018 13:49
Result Patern to Coroutines
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>{
@Ferfalk
Ferfalk / SimpleAnimationUtils.java
Last active February 27, 2019 21:26
Android SimpleAnimationUtils
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;
@nickbutcher
nickbutcher / MainActivity.java
Last active August 20, 2021 16:15
A quick sample of the new physics-based animation library added in Support Library 25.3.0 docs: https://developer.android.com/reference/android/support/animation/package-summary.html output: https://twitter.com/crafty/status/842055117323026432
/*
* 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
@DianaEromosele
DianaEromosele / Change "origin" of your GIT repository
Created August 7, 2016 00:31
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@erikhenrique
erikhenrique / bin-cc.md
Last active February 5, 2024 16:06
Bin de cartões de crédito para validação

Validação para cartão de crédito.

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