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 | |
KEXT_DIR="EFI/OC/Kexts" | |
FILES=`find $KEXT_DIR -depth 1 | sort` | |
for f in $FILES | |
do | |
plutil -p $f/Contents/Info.plist | | |
awk '/CFBundleShortVersionString/ {print substr($3, 2, length($3)-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
+++++ +++++ [ | |
> +++++ ++ | |
< - | |
] | |
> - . | |
< +++++ +++++ [ | |
> ++++ | |
< - |
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
public Bitmap blur(Bitmap inBitmap, int radius) { | |
if (radius >= 25) { | |
radius = 25; | |
} | |
Bitmap bitmap = inBitmap.copy(inBitmap.getConfig(), true); | |
final RenderScript rs = RenderScript.create(getApplicationContext()); | |
final Allocation input = Allocation.createFromBitmap( rs, bitmap, Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT ); |