Skip to content

Instantly share code, notes, and snippets.

@sephiroth74
sephiroth74 / Reveal.java
Created March 4, 2015 05:52
Circular Reveal Transition
package it.sephiroth.android.library.myapplication;
import android.animation.Animator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.transition.TransitionValues;
import android.transition.Visibility;
import android.util.AttributeSet;
@sephiroth74
sephiroth74 / git pretty stat
Last active April 17, 2024 22:23
Show lines added/deleted and total commits per author in a period of time on all branches
git log --all --numstat --pretty="%H" --author="author" --since=1.year | awk 'NF==3 {plus+=$1; minus+=$2} NF==1 {total++} END {printf("lines added: +%d\nlines deleted: -%d\ntotal commits: %d\n", plus, minus, total)}'
@sephiroth74
sephiroth74 / gist:f84c36f679f1205543a0
Created January 8, 2015 21:51
Android MediaScanner scan folder
adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard/
@sephiroth74
sephiroth74 / Crypto
Created November 22, 2014 05:17
Decrypt open-ssl encrypted file using android
package it.sephiroth.android.library.simpleaes;
import android.support.annotation.NonNull;
import android.util.Base64;
import java.security.GeneralSecurityException;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;