- 浏览: 109760 次
- 性别:
- 来自: 上海
文章列表
git图形用户工具
QGit, gitview, tig, smartgit
1) QGit
QGit在启动的时候可以弹出对话框让你选择你要显示的Top和Bottom,这点不错,但是初始化比gitk慢多了
QGit的图形显示较gitk更为直观
2) gitview
Did not find on Ubutnu 10.04LTS and Debian 6
3) tig
git文本模式的接口,较git直观
4)smartgit
windows下的git GUI工具
http://mongoid.org
The philosophy of Mongoid is to provide a familiar API to Ruby developers who have been using Active Record.
A good to advanced knowledge of Ruby.
Have good knowledge of your web framework if using one.
A thorough understanding of MongoDB.
thorough understanding
...
DesignImage.from.available.audited_with_colors
# ALWAYS used
tar = DesignImage.from.available.audited_with_colors.first
> DesignImage Load (9.3ms) SELECT `design_images`.* FROM `design_images` WHERE (design_images.created_at > ('2013-3-1')) AND (design_images.imageable_id ...
For example, you could write a pattern that matches a string containing the text ``Perl'' or the text ``Python'' using the following regular expression.
/Perl|Python/
The forward slashes delimit the pattern, which consists of the two things we're matching, separated by a pipe character ...
大约7年前的2004/03/14,如果《20040314》来表示的话,至少有1次要用1~4所有的数字。在2004年的1月~12月这1年间,像这样1~4的数字全部至少用到1次的日子,有多少天?
tar = []
(Date.new(2004,1,1)...Date.new(2005,1,1)).to_a.each{|e| tar << e.strftime('%F') if (e.strftime('%F').include? '1') && (e.strftime('%F').include? '3')}
p tar
# http://mirrors.163.com/ubuntu-releases/12.04.4/
# => ubuntu-12.04.4-desktop-amd64.iso
sudo apt-get install -y vim ifstat firefox
# Install dependencies
sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev cur ...
看个例子:
<a href="http://segmentfault.com/q/1010000000125418" target="_blank" data-id="1010000000125418">jQuery</a>
$('a').click(function(){
this.innerHTM==$(this).html()=='jQuery';//三者是一样的.
this.getAttribute('href')==this.href==$(this).attr('href ...
1. NEW
tar = [1,2,3,4,5]
arr = Array.new(4000){|i| 1+i }
# better spell:
arr = (1..4000).to_a
# use tap
tar = [].tap {|i| (1..3).to_a.each{|e| i << e}}
2.1 take
# Returns first elements
tar = arr.take(60)
2.2 first last
tar = arr.first
tar = arr.last
# first == take
tar = ...