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 | |
color=black | |
dp=48 | |
fileArray=() | |
while test $# != 0 | |
do | |
case "$1" in | |
-w) color=white;; |
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
alias adb='~/Library/Android/sdk/platform-tools/adb' | |
alias emulator='~/Library/Android/sdk/tools/emulator' | |
alias adbr='adb kill-server; sleep 1; adb start-server' |
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 class CustomFontTabLayout extends TabLayout { | |
public CustomFontTabLayout(Context context) { | |
super(context); | |
} | |
public CustomFontTabLayout(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
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
#Note: Change the values to your system. On my 4Gb Ram MacBook Air, I use | |
#-Xms:128m -Xmx1250m XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=96m | |
#These values are for a 16Gb ram Mac | |
#Run this for the standard android studio | |
echo -e "-Xms1g \n-Xmx8g \n-XX:MaxPermSize=1g \n-XX:ResevedCodeCacheSize=500m" > ~/Library/Preferences/AndroidStudio/studio.vmoptions | |
#Run this for Android Studio 1.2 preview | |
echo -e "-Xms1g \n-Xmx8g \n-XX:MaxPermSize=1g \n-XX:ResevedCodeCacheSize=500m" > ~/Library/Preferences/AndroidStudioPreview1.2/studio.vmoptions |
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
export ANDROID_HVPROTO=ddm; ./sdk/tools/hierarchyviewer2 |
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
An this, its implementation with a VectorDrawable | |
vd_star.xml | |
<?xml version="1.0" encoding="utf-8"?> | |
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:viewportWidth="400" | |
android:viewportHeight="400" | |
android:width="300px" | |
android:height="300px"> |
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
git cherry master | grep -v - | cut -d ' ' -f2 | xargs -n 1 git --no-pager show -s --format='%H %an <%ae> %ad' |
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 class SkitchVersionChecker { | |
private static final String SKITCH_PACKAGE = "com.evernote.skitch"; | |
private static final String TAG = "Skitch Checker"; | |
/**Build the intent to send to send the edit intent to skitch. | |
* If Skitch is not installed or isn't up to date, it will take | |
* the user to the market and ask them to install skitch. | |
* @param context expects an activity context (not an application context) |