Skip to content

Instantly share code, notes, and snippets.

View MakawaMT's full-sized avatar

Takondwa Makawa MakawaMT

View GitHub Profile
@vkrm26
vkrm26 / CustomNetworkImageView.java
Last active December 22, 2022 09:41
Custom image view which works on TouchImageView (https://github.com/MikeOrtiz/TouchImageView) & also extends NetworkImageView (volley) functionality.
import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.ViewGroup;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
/**
@LionC
LionC / CardType.java
Last active June 8, 2021 06:52 — forked from gabrielbauman/CardType.java
A Java enum representing credit card types (Visa, Mastercard etc) that can detect card type from a credit card number.
package com.gabrielbauman.gist;
import java.util.regex.Pattern;
public enum CardType {
UNKNOWN,
VISA("^4[0-9]{12}(?:[0-9]{3})?$"),
MASTERCARD("^5[1-5][0-9]{14}$"),
AMERICAN_EXPRESS("^3[47][0-9]{13}$"),
@PurpleBooth
PurpleBooth / README-Template.md
Last active November 19, 2024 11:04
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites