Skip to content

Instantly share code, notes, and snippets.

@kesco
kesco / tmux.conf
Created June 4, 2015 08:51
.dotconfig
# 设置前缀为Ctrl + a
set -g prefix C-x
#解除Ctrl+b 与前缀的对应关系
unbind C-b
# TmuxLine
if-shell "test -f $HOME/.tmuxline" "source $HOME/.tmuxline"
@kesco
kesco / vimwiki
Created June 2, 2015 01:36
vimwiki
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' " 笔记文件路径
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"
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
@kesco
kesco / zshrc
Created September 6, 2014 02:54
Zsh
# 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 ""'
@kesco
kesco / Hadoop Configuration
Last active August 29, 2015 14:00
Ubuntu_14.04_X64 Hadoop Single Node
# 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
@kesco
kesco / Vim-Plug Install
Last active August 29, 2015 13:57
Kesco's own vimrc file
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim