This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by guness on 7.02.2018. | |
*/ | |
class CommentAdapter(private val fragment: SGFragment) : RecyclerView.Adapter<CommentViewHolder>() { | |
private val mCustomList = ArrayList<Comment>() | |
private val mListener = object : ListUpdateCallback { | |
override fun onChanged(position: Int, count: Int, payload: Any?) { | |
notifyItemRangeChanged(paged(position), count, payload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.annotation.NonNull; | |
import androidx.lifecycle.LiveData; | |
import androidx.lifecycle.MediatorLiveData; | |
import androidx.lifecycle.Observer; | |
import java.util.function.BiFunction; | |
public class CombinedLiveData<T, K, S> extends MediatorLiveData<S> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System-wide profile for interactive zsh(1) login shells. | |
# Setup user specific overrides for this in ~/.zprofile. See zshbuiltins(1) | |
# and zshoptions(1) for more details. | |
if [ -x /usr/libexec/path_helper ]; then | |
paths=`/usr/libexec/path_helper -s` | |
eval ${paths//'\$USER'/$'$USER'} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -i | |
#using shebang with -i to enable interactive mode (auto load .bashrc) | |
set -e #stop immediately if any error happens | |
# Install Open SDK | |
apt update | |
apt install openjdk-11-jre-headless -y | |
java -version |