Skip to content

Instantly share code, notes, and snippets.

View aperfilyev's full-sized avatar

Alexander Perfilyev aperfilyev

  • Moscow, Russia
  • 16:35 (UTC +03:00)
View GitHub Profile
@aperfilyev
aperfilyev / 00-ubuntu-intellij-macosx.md
Created February 10, 2023 08:03 — forked from ingramchen/00-ubuntu-intellij-macosx.md
Use ubuntu/Intellij like macOS X

How to mimic full macOS Intellij behavior in Ubuntu

  • Enviroment
    • Ubuntu 20.04
    • Intellij IDEA 2020

Ubuntu gnome shell shortcuts

@aperfilyev
aperfilyev / CustomPanelGestureDetection.kt
Created August 1, 2020 10:49 — forked from discord-gists/CustomPanelGestureDetection.kt
a simplified code example for how Discord's Android app supports custom panel gesture detection
class OverlappingPanelsLayout : FrameLayout {
private var scrollingSlopPx: Float = 0f
private var velocityTracker: VelocityTracker? = null
private var isScrollingHorizontally = false
private var xFromInterceptActionDown: Float = 0f
private var yFromInterceptActionDown: Float = 0f
... // initialize scrollingSlopPx and VelocityTracker
@aperfilyev
aperfilyev / Android Privacy Policy Template
Created July 27, 2020 09:41 — forked from alphamu/Android Privacy Policy Template
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and
disclosure of Personal Information if anyone decided to use [my|our] Service.</p>
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that [I|we] collect are used for providing and
improving the Service. [I|We] will not use or share your information with anyone except as described
package com.monzo.design.nosymbol
import android.content.Context
import android.util.AttributeSet
import android.view.HapticFeedbackConstants.VIRTUAL_KEY
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import android.view.accessibility.AccessibilityEvent
import androidx.recyclerview.widget.LinearSnapHelper