Git Clone Only One Branch

git clone learned –single-branch option to limit cloning to a single branch (surprise!); tags that do not point into the history of the branch are not fetched.
Git actually allows you to clone only one branch, for example:

1
$ git clone -b mybranch --single-branch git://sub.domain.com/repo.git

Js Clock

  • Js Clock
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    var time = 0;
    setInterval(function(){
    time ++;
    console.log(time);
    } , 1000);

    var time = 0;
    setTimeout(function(){
    time ++;
    console.log(time);
    } , 1000);

Singapore Condo

大巴窑7年多来首个崭新公寓发售 GEM Residence, 1房才$57万8起, 楼盘预计 2020 年4月完工,99年地契,靠近Braddell MRT地段非常好,578 个单位,想买房的可以关注下。

Read More

8 Things Really Efficient People Do

Most everyone would like to be more efficient. Just think, you would spend less time doing the things that you don’t enjoy and more on the things that bring satisfaction, happiness and profit. Some people are actually very adept at efficiency. They manage every manageable moment so they have more time for themselves to do the things they love. Here are eight techniques efficient people use to gain that freedom.

Read More

Scala Programing Habit

应用层

80/20原则:80%的代码是 纯函数,其余如处理IO,数据库,用户交互等方面的20%的代码也应该尽量轻量级
培养面向表达式的编程思维,培养函数式编程思维
用Actor模型实现并发功能
将更多的 行为 从 类里 移到 更细粒度的 trait中

Read More