Skip to content

Instantly share code, notes, and snippets.

@ranjitzade
ranjitzade / README-Template.md
Created May 7, 2021 07:43 — forked from PurpleBooth/README-Template.md
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

@ranjitzade
ranjitzade / emojis.json
Created March 8, 2018 12:08 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw
@ranjitzade
ranjitzade / README.md
Created May 30, 2017 06:21 — forked from gabrielemariotti/README.md
How to manage the support libraries in a multi-module projects. Thanks to Fernando Cejas (http://fernandocejas.com/)

Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.

A very good way is to separate gradle build files, defining something like:

root
  --gradleScript
 ----dependencies.gradle
@ranjitzade
ranjitzade / Logger
Last active September 13, 2016 04:24
Better logger class.
/**
* This class is an improvement over Log class provided by Android API.
* Log class by Android API, needs to feed 'TAG' which is generally a class name. In each Log, we
* have to manually add this. This is the reason this custom Log is created. We may add more features
* later but right now this is the motivation for creating a custom Log class.
* <p/>
*/
public class Log {
/**
@ranjitzade
ranjitzade / WrapperRecyclerAdapter.java
Created May 16, 2016 13:45 — forked from renaudcerrato/WrapperRecyclerAdapter.java
Simple wrapper for RecyclerAdapter.
package recyclerview.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
@SuppressWarnings("unchecked")
public class WrapperRecyclerAdapter extends RecyclerView.Adapter {
private final RecyclerView.Adapter mAdapter;
@ranjitzade
ranjitzade / AspectRatioImageView.java
Last active August 29, 2015 14:28 — forked from JakeWharton/AspectRatioImageView.java
ImageView that respects an aspect ratio applied to a specific measurement.
// Copyright 2012 Square, Inc.
package com.squareup.widgets;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.ImageView;
/** Maintains an aspect ratio based on either width or height. Disabled by default. */
public class AspectRatioImageView extends ImageView {