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
find -name "*.mk" -print | xargs grep "LOCAL_MODULE" |
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
// SystemUI (status bar) layout policy | |
int shortSizeDp = shortSize | |
* DisplayMetrics.DENSITY_DEFAULT | |
/ DisplayMetrics.DENSITY_DEVICE; | |
if (shortSizeDp < 600) { | |
// 0-599dp: "phone" UI with a separate status & navigation bar | |
mHasSystemNavBar = false; | |
mNavigationBarCanMove = true; | |
} else if (shortSizeDp < 720) { |
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
#!/usr/bin/python | |
import sys | |
import smtplib | |
subject = sys.argv[1] | |
body = sys.argv[2] | |
recipients = sys.argv[3] | |
gmail_user = '[email protected]' | |
gmail_pwd = 'password' |
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
make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm xxxx_config | |
make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm |
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
which sh | xargs ls -l |
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
#... | |
path=`pwd` | |
project_name=${path/"$HOME/repositories/"/""} | |
#... | |
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
// For block below content issue. | |
body { | |
padding-top: 60px; | |
} | |
@media (max-width: 979px) { | |
body { | |
padding-top: 0px; | |
} | |
} |
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
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash | |
echo "source ~/.git-completion.bash" >> ~/.bash_profile |
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
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head |
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 config --global alias.tree "log --graph --decorate --pretty=oneline --abbrev-commit" |
OlderNewer