Skip to content

Instantly share code, notes, and snippets.

View v-mas's full-sized avatar

v-mas v-mas

  • Rzeszów
View GitHub Profile
@v-mas
v-mas / ScrollViewBehaviorFix
Last active November 30, 2020 01:30 — forked from MaciejKaras/ScrollViewBehaviorFix
#Android #Behavior #AppBarLayout Scrolling behavior that removes/restores SCROLL flag on AppBarLayout children if this content is smaller than remaining space below appbar
package com.github.v_mas.ui.behavior
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.ViewCompat
import androidx.core.view.forEach
import androidx.core.view.updateLayoutParams
import com.google.android.material.appbar.AppBarLayout
@v-mas
v-mas / copy_convert.ps1
Created January 29, 2018 00:31
using VLC to convert mpg/mov files into mp4 and copy all the rest
####
# if mp4a audio is not working, open VLC and go to
# Tools > Preferences > Input/Codecs > Video codecs > FFmpeg
# and change
# Strict standard compliance
# to
# -2
####
Param(
@v-mas
v-mas / convert.bat
Created January 20, 2018 23:48
batch script to convert mpeg/mov to w10 friendly mp4
@ECHO OFF
REM if mp4a audio is not working
REM Go to Tools > Preferences > Input/Codecs > Video codecs > FFmpeg Changing the 'Strict standard compliance to -2
FOR /R %%G IN (*.mpg) DO (CALL :SUB_VLC_MP4 "%%G")
FOR /R %%G IN (*.mpg.mp4) DO (CALL :SUB_RENAME_MPGMP4 "%%G")
FOR /R %%G IN (*.mov) DO (CALL :SUB_VLC_MOV "%%G")
FOR /R %%G IN (*.mov.mp4) DO (CALL :SUB_RENAME_MOVMP4 "%%G")
PAUSE
GOTO :eof