Skip to content

Instantly share code, notes, and snippets.

Dmitriy Makarov m4xp1

Block or report user

Report or block m4xp1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@m4xp1
m4xp1 / ScaleTransition.kt
Created Jul 13, 2019
Transition animation for text view
View ScaleTransition.kt
package com.example.android.basictransition
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.ObjectAnimator
import android.animation.PropertyValuesHolder.ofFloat
import android.content.Context
import android.transition.Transition
import android.transition.TransitionValues
import android.util.AttributeSet
@m4xp1
m4xp1 / NumberView.kt
Created Jul 13, 2019
Resized text view
View NumberView.kt
package com.example.android.basictransition
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Rect
import android.support.annotation.ColorInt
import android.util.AttributeSet
import android.util.TypedValue
@m4xp1
m4xp1 / ResizeText.kt
Created Jul 11, 2019
ResizeText transition animation
View ResizeText.kt
package com.example.android.basictransition
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.ValueAnimator
import android.content.Context
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Rect
@m4xp1
m4xp1 / ViewPager.kt
Created Jul 7, 2019
ViewPager with support animation wrap_content
View ViewPager.kt
package one.xcorp.widget
import android.animation.ValueAnimator
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import one.xcorp.widget.R
import kotlin.properties.Delegates.observable
@m4xp1
m4xp1 / comands.sh
Last active Jul 24, 2018
Различные полезные консольные команды.
View comands.sh
Подсчет колличества строк в файлах: find . -name *.kt -exec wc -l {} +
@m4xp1
m4xp1 / Entry.java
Created May 22, 2018 — forked from mpost/Entry.java
Android application demonstrating the usage of ViewOverlay and OnPreDrawListener to achieve animations effects.
View Entry.java
package com.example.overlay;
public class Entry {
private final int imageResId;
private final String title;
public Entry( int imageResId, String title ) {
this.imageResId = imageResId;
@m4xp1
m4xp1 / .bashrc
Last active Apr 25, 2018
Adb alias
View .bashrc
# Add in end file ~/.bashrc
findapp() { adb shell pm list packages | grep "$1" | cat -v | sed -e 's/package://g' -e 's/\^M//g'; }
# findapp [shortName] out: com.example.package
findps() { adb shell ps | grep "$1"; }
# findps [shortName] out: process info if exist
stopapp() { adb shell am force-stop "$1"; }
# stopapp com.example.package
@m4xp1
m4xp1 / album
Last active Jul 3, 2018
Bash script for recording musical album from audio card output (using record scripts)
View album
#!/bin/bash
# Setup album data
artist="Steven Solveig"
album="Beginning of the End - Trailer Underscores"
year=2017
# Setup album songs
declare -a name; declare -a time;
name+=("Dark Awakening"); time+=("01:43")
You can’t perform that action at this time.