Skip to content

Instantly share code, notes, and snippets.


Thiago MrThiago

Block or report user

Report or block MrThiago

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
MrThiago / android-set-reset-status-bar-color
Created May 7, 2018
How to set and reset status bar color in android
View android-set-reset-status-bar-color
// Change the status bar color => REQUIRES API 21 and above
private static int defaultStatusBarColor;
public static void changeStatusBarColor(Activity context, boolean change, int color){
if (Build.VERSION.SDK_INT >= 21)
Window window = context.getWindow();
MrThiago / adb-get-serialno
Created Apr 30, 2018
How to get Android device Serial Number Via ADB
View adb-get-serialno
adb shell getprop | grep ro.boot.serialno
MrThiago / androidAdbTips
Last active Apr 25, 2018
Android Device Screenshot using ADB
View androidAdbTips
Screen print
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
Screen recording
adb shell screenrecord /sdcard/example.mp4
:Desktop user$ adb pull /sdcard/example.mp4
View batchImageRename
Remane as removing (_iphone)
for i in *.png ; do mv "$i" "${i/_iphone*.png/.png}" ; done
Rename adding (android_)
for file in images*.png; do mv "$file" "android_$file"; done
MrThiago / disableAutoScroll
Created Apr 25, 2018
How to Disable auto-scroll after load in Android
View disableAutoScroll
# Adding the "descendantFocusability" attribute to the ScrollView's containing LinearLayout
android:descendantFocusability="blocksDescendants" >
MrThiago / MergeImages
Created Apr 25, 2018
MAC combine two images into one
View MergeImages
convert +append image_1.png image_2.png new_image_conbined.png
MrThiago /
Created Feb 8, 2018 — forked from Arood/
Convert iPhone-resources to Android (for Titanium)
type mogrify >/dev/null 2>&1 || { echo >&2 "» This script requires mogrify. Please install ImageMagick first!"; exit 1; }
rm -rf Resources/android/images
mkdir Resources/android/images
mkdir Resources/android/images/res-xhdpi
mkdir Resources/android/images/res-mdpi
echo " » Copying the splash screen"
cp Resources/iphone/Default.png Resources/android/images/res-mdpi/default.png
cp Resources/iphone/Default@2x.png Resources/android/images/res-xhdpi/default.png
/* Copyright 2013 Google Inc.
Licensed under Apache 2.0: */
package com.example.latlnginterpolation;
import android.animation.ObjectAnimator;
import android.animation.TypeEvaluator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.os.Build;
MrThiago /
Created Apr 15, 2016 — forked from jetsonhacks/
Install Caffe on NVIDIA Jetson TK1 LT4 21.2 - CUDA 6.5
# Install and compile Caffe on NVIDIA Jetson TK1 Development Kit
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libprotobuf-dev protobuf-compiler gfortran \
libboost-dev cmake libleveldb-dev libsnappy-dev \
libboost-thread-dev libboost-system-dev \
libatlas-base-dev libhdf5-serial-dev libgflags-dev \
libgoogle-glog-dev liblmdb-dev -y
View sample for transctions
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
Fragment fragment;
transaction.setCustomAnimations(anim.slide_in_left, anim.slide_out_right); //built in
//transaction.setCustomAnimations(R.anim.slide_in_bottom, R.anim.slide_out_up); //Custom in RES folder
transaction.replace(, fragment);
You can’t perform that action at this time.