Skip to content

Instantly share code, notes, and snippets.

View eliseomartelli's full-sized avatar
🌍
Coding somewhere nice

Eliseo Martelli eliseomartelli

🌍
Coding somewhere nice
View GitHub Profile
#!/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)}\
@eliseomartelli
eliseomartelli / eliseo.b
Created July 6, 2016 15:55
Eliseo in brainfuck
+++++ +++++ [
> +++++ ++
< -
]
> - .
< +++++ +++++ [
> ++++
< -
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 );