摘要: 1.export PS1='\u@\h:\[\033[1;34m\]\w\[\033[0;33m\]$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$([[ $(git status 2> /dev/null | tai... 阅读全文
posted @ 2014-08-12 22:55 Zuliu 阅读(396) 评论(0) 推荐(0)
摘要: ref:http://www.zhihu.com/question/20125256简单来说,编程中提到的 lambda 表达式,通常是在需要一个函数,但是又不想费神去命名一个函数的场合下使用,也就是指匿名函数。这一用法跟所谓 λ 演算(题目说明里的维基链接)的关系,有点像原子弹和质能方程的关系,差别其实还是挺大的。不谈形式化的 λ 演算,只说有实际用途的匿名函数。先举一个普通的 Python... 阅读全文
posted @ 2014-05-08 10:26 Zuliu 阅读(386) 评论(0) 推荐(0)
摘要: 1. Downloading source code from the official website: http://git-scm.com/downloadsOr git it from github:1 git clone https://github.com/git/git2. En... 阅读全文
posted @ 2014-04-16 08:16 Zuliu 阅读(274) 评论(0) 推荐(0)
摘要: (For all new to Emacs: M-x : Press Alt and x C-x : Press Ctrl and x )(system information: ubuntu 12.04 LTS x64 + Emacs 24.3.1)Table of Conten... 阅读全文
posted @ 2014-04-14 08:16 Zuliu 阅读(469) 评论(0) 推荐(0)