- Create Android Application.
- name:
ui.user.HomeActivity
- project:
app
- package:
com.github.mobile
- name:
- Copy master's
src
,res
,assets
andAndroidManifest.xml
toapp
project. - Fix source path.
- Right click
src
> Build Path > Remove from Build Path. - Right click
src/main/java
> Build Path > Use as Source Folder.
- Right click
- Follow Building From Eclipse wiki.
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
# You may want to put all your additions into a separate file like | |
# ~/.bash_aliases, instead of adding them here directly. | |
# add below into your .bashrc or .bash_profile | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi |
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
# Stashing is a great way to pause what you’re currently working on and come | |
# back to it later. For example, if you working on that awesome, brand new | |
# feature but someone just found a bug that you need to fix. Add your changes to | |
# the index using | |
$ git add . | |
# Or add individual files to the index, your pick. Stash your changes away with: | |
$ git stash |
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
# add into .bashrc file | |
PS1='\[\e[0;33m\]\w\[\e[0m\] ' | |
# update the changes | |
$ source ~/.bashrc |
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 ga='git add' | |
alias gaa='git add .' | |
alias gb='git branch' | |
alias gc='git commit -m' | |
alias gca='git commit -am' | |
alias gd='git diff' | |
alias gh='git stash' | |
alias gl='git log --oneline' | |
alias gm='git commit --amend' | |
alias gn='git clone' |
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 'port*' |
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
$ sudo gem cleanup | |
$ gem stale |
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
# test rvm | |
$ source ~/.rvm/scripts/rvm | |
$ type rvm | head -n 1 | |
rvm is a function | |
$ rvm requirements | |
# use rvm | |
$ rvm list known | |
$ rvm install 1.9.2 | |
$ rvm use 1.9.2 |
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
# shutdown / poweroff Ubuntu Linux | |
$ sudo halt | |
# or | |
$ sudo shutdown -h now | |
# reboot Ubuntu Linux | |
$ sudo reboot |
OlderNewer