Skip to content

Instantly share code, notes, and snippets.

View Holofox's full-sized avatar
🦊
I love foxes

Holofox

🦊
I love foxes
View GitHub Profile
@Holofox
Holofox / main.dart
Created December 24, 2023 12:35
sample-1-suggestion
import 'package:flutter/material.dart';
void main() => runApp(const MaterialApp(home: AuthScreen()));
class AuthScreen extends StatelessWidget {
const AuthScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
@Holofox
Holofox / main.dart
Created December 24, 2023 12:35
sample-1
import 'package:flutter/material.dart';
void main() => runApp(const MaterialApp(home: AuthScreen()));
class AuthScreen extends StatelessWidget {
const AuthScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
@Holofox
Holofox / DataBindingAdapter.kt
Created July 30, 2019 10:46
DataBindingAdapter for RecyclerView (MVVM)
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 January 18, 2021 15:47
Hiding recoubs, mutes, non-hd, a.webm, vines and others coubs.
// ==UserScript==
// @name FRESHLY SQUEEZED COUBS
// @namespace https://holofox.ru/
// @version 1.0
// @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