Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I love foxes

Holofox

💭
I love foxes
View GitHub Profile
@Holofox
Holofox / DataBindingAdapter.kt
Created Jul 30, 2019
DataBindingAdapter for RecyclerView (MVVM)
View DataBindingAdapter.kt
abstract class DataBindingAdapter<T>(
private val variableId: Int,
diffCallback: DiffUtil.ItemCallback<T>
) : ListAdapter<T, DataBindingAdapter.DataBindingViewHolder<T>>(diffCallback) {
private var list: List<T>? = emptyList()
private lateinit var onItemViewClick: ((View, T, Int) -> Unit?)
private lateinit var clickableIds: IntArray
@Holofox
Holofox / freshly_squeezed_coubs.js
Last active May 22, 2020
Hiding recoubs, mutes, non-hd, a.webm, vines and others coubs.
View freshly_squeezed_coubs.js
// ==UserScript==
// @name FRESHLY SQUEEZED COUBS
// @namespace https://holofox.ru/
// @version 0.7
// @description Hiding recoubs, mutes, non-hd, a.webm, vines and others coubs.
// @author Holofox
// @match *://coub.com/community/*
// @grant none
// ==/UserScript==
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
You can’t perform that action at this time.