Skip to content

Instantly share code, notes, and snippets.

bejibx

Block or report user

Report or block bejibx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ArrowSandbox.kt
package com.bejibx.android.testdataprocessor
import arrow.core.Either
import arrow.fx.rx2.ForSingleK
import arrow.fx.rx2.SingleK
import arrow.fx.rx2.extensions.singlek.functor.functor
import arrow.fx.rx2.extensions.singlek.monad.monad
import arrow.fx.rx2.k
import arrow.fx.rx2.value
import arrow.mtl.EitherT
@bejibx
bejibx / TextViewUtils.java
Created Oct 7, 2016
Separate thousands in android text view with spans
View TextViewUtils.java
import android.graphics.Canvas;
import android.graphics.Paint;
import android.support.annotation.NonNull;
import android.text.Editable;
import android.text.Spanned;
import android.text.TextWatcher;
import android.text.style.ReplacementSpan;
import android.widget.TextView;
import java.text.DecimalFormat;
@bejibx
bejibx / CancellablePermissionRequestActivity.java
Last active Aug 10, 2016
Cancel runtime permission request in Android
View CancellablePermissionRequestActivity.java
import android.Manifest;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.NotificationCompat;
You can’t perform that action at this time.