This file contains 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
$source = "E:\Muzon\CAR Music\rus" | |
$destination = Join-Path -Path $source -ChildPath "test2" | |
$filter = "*.*" # Change this to match the desired file extensions | |
$filesWithCyrillic = Get-ChildItem -Path $source -File | Where-Object { $_.Name -match "\p{IsCyrillic}" -and $_.Name -like $filter } | |
# Create the destination directory if it doesn't exist | |
if (-not (Test-Path -Path $destination)) { | |
New-Item -Path $destination -ItemType Directory | |
} |
This file contains 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
# Python script to vertically center a set of glyphs in a font. | |
# Requires fontforge python module. | |
# Credits to u/janKeTami here: https://www.reddit.com/r/FontForge/comments/11r6x4q/vertically_centering_glyphs/ | |
# Slightly altered to enable this script to be run straight from the terminal using ttf/otf fonts | |
import re | |
import os | |
import argparse | |
try: | |
import psMat |
This file contains 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
#!/bin/bash | |
. build/envsetup.sh | |
mmm frameworks/base/packages/SystemUI/ | |
adb start-server | |
adb shell pkill -TERM -f com.android.systemui | |
adb remount | |
adb push $OUT/system/priv-app/SystemUI.apk /system/priv-app/SystemUI.apk | |
adb shell pkill -TERM -f com.android.systemui | |
adb shell chmod 0644 /system/app-priv/SystemUI.apk | |
sleep 2 |
This file contains 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
var waitForEl = function(selector, callback) { | |
if (jQuery(selector).length) { | |
callback(); | |
} else { | |
setTimeout(function() { | |
waitForEl(selector, callback); | |
}, 100); | |
} | |
}; |
This file contains 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
;(function ($, window) { | |
var intervals = {}; | |
var removeListener = function(selector) { | |
if (intervals[selector]) { | |
window.clearInterval(intervals[selector]); | |
intervals[selector] = null; | |
} |