Skip to content

Instantly share code, notes, and snippets.

View kustra's full-sized avatar

László Zsolt Kustra kustra

View GitHub Profile
@kustra
kustra / targetMembershipChecker.bash
Last active February 2, 2018 15:51
Bash script to check if multiple targets have the same set of files and resources in Xcode.
#!/usr/bin/env bash
set -u
[ -z "$2" ] && {
echo "Usage: $0 path/to/xcodeproj target1 target2 ..."
echo "The script will verify that all listed targets have the exact same set of files and resources."
echo "Tested with Xcode 9.1"
}
PBXFILE="$1/project.pbxproj"
@kustra
kustra / HeaderFooterRecyclerViewAdapter.java
Last active March 15, 2021 03:58 — forked from mheras/HeaderFooterRecyclerViewAdapter.java
Header & footer support for RecyclerView.Adapter, with custom ViewHolder types for the content, header and footer
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
public abstract class HeaderFooterRecyclerViewAdapter<
ContentViewHolder extends RecyclerView.ViewHolder,
HeaderViewHolder extends RecyclerView.ViewHolder,
FooterViewHolder extends RecyclerView.ViewHolder>
extends RecyclerView.Adapter<RecyclerView.ViewHolder> {