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
# 设置前缀为Ctrl + a | |
set -g prefix C-x | |
#解除Ctrl+b 与前缀的对应关系 | |
unbind C-b | |
# TmuxLine | |
if-shell "test -f $HOME/.tmuxline" "source $HOME/.tmuxline" |
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
let g:vimwiki_menu = '' " 不在菜单栏上显示Vimwiki | |
let g:vimwiki_use_mouse = 1 " 使用鼠标 | |
let g:vimwiki_diary_months = { | |
\ 1: '一月', 2: '二月', 3: '三月', 4: '四月', 5: '五月', 6: '六月', | |
\ 7: '七月', 8: '八月', 9: '九月', 10: '十月', 11: '十一月', 12: '十二月' | |
\ } " 设置日期显示文字 | |
autocmd FileType vimwiki setlocal wrap " 折行 | |
let g:vimwiki_valid_html_tags = 'b,i,s,u,sub,sup,kbd,br,hr,img' " 设置可以在笔记中使用的Html Tag | |
let develop_notes = {} " 个人开发笔记 | |
let develop_notes.path = '~/Documents/note/develop-notes' " 笔记文件路径 |
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
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
All Clickable Views: | |
----------- | |
* ripple effect (Lollipop only) -- "colorControlHighlight" | |
Status Bar: | |
------------ | |
* background (Lollipop only) - "colorPrimaryDark" |
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
android.libraryVariants.all { variant -> | |
def name = variant.buildType.name | |
if (name.equals(com.android.builder.core.BuilderConstants.DEBUG)) { | |
return; // Skip debug builds. | |
} | |
def task = project.tasks.create "jar${name.capitalize()}", Jar | |
task.dependsOn variant.javaCompile | |
//Include Java classes | |
task.from variant.javaCompile.destinationDir | |
//Include dependent jars with some exceptions |
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
# VirtualEnvWrapper Settings | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/Devel | |
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh | |
source /usr/local/bin/virtualenvwrapper_lazy.sh | |
# Emacs设置 | |
alias em='emacsclient -t -a ""' | |
alias emc='emacsclient -nc -a ""' | |
EDITOR='emacsclient -a ""' |
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
# Ubuntu 安装相应的依赖 | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential openjdk-7-jdk git maven subversion | |
sudo apt-get install g++ autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev | |
# 解压Hadoop到/usr/local里 | |
tar xfz hadoop-2.40.tar.gz | |
sudo mv hadoop-2.40 /usr/local | |
cd /usr/local |
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 -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |