Skip to content

Instantly share code, notes, and snippets.

View SachinR90's full-sized avatar
💭
I may be slow to respond.

Sachin Rao SachinR90

💭
I may be slow to respond.
  • Coditas
  • Pune
View GitHub Profile
@SachinR90
SachinR90 / ArrayDiff.swift
Created January 8, 2021 06:10 — forked from praeclarum/ArrayDiff.swift
A generic diffing operation that can calculate the minimal steps needed to convert one array to another. It can be used to generate standard diffs, or it can be used more creatively to calculate minimal UI updates.
//
// ArrayDiff.swift
//
// Created by Frank A. Krueger on 6/30/15.
// Copyright © 2015 Krueger Systems, Inc. All rights reserved.
// License: MIT http://opensource.org/licenses/MIT
//
import Foundation
@SachinR90
SachinR90 / PagingRecyclerView
Created October 5, 2017 11:26 — forked from mgarnerdev/PagingRecyclerView
Horizontal Snapping RecyclerView with Page Indication
import android.content.Context;
import android.graphics.PointF;
import android.support.v7.widget.LinearSmoothScroller;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.MotionEvent;
/**