This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun View.doOnWindowInsetsChanged( | |
| listenToAnimation: Boolean = false, | |
| @DispatchMode dispatchMode: Int = DISPATCH_MODE_STOP, | |
| callback: (v: View, insets: WindowInsetsCompat) -> WindowInsetsCompat, | |
| ) { | |
| var isAnimationRunning = false | |
| ViewCompat.setOnApplyWindowInsetsListener(this) { v, insets -> | |
| if (isAnimationRunning) insets else callback(v, insets) | |
| } | |
| if (listenToAnimation) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $files = Get-ChildItem -Recurse -Filter '*.ts' | |
| foreach ($file in $files) { | |
| ffmpeg.exe -i ($file) ($file -replace '\.ts$', '.mp4') | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reg add HKLM\Software\Policies\Google\Chrome /v RemoteAccessHostRequireCurtain /d 0 /t REG_DWORD /f | |
| reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /d 1 /t REG_DWORD /f | |
| reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v SecurityLayer /d 2 /t REG_DWORD /f | |
| reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /d 1 /t REG_DWORD /f | |
| net stop chromoting | |
| net start chromoting |
OlderNewer