VCS
看起来在“专业的软件开发素养”这个分类中。
VCS
是软件开发生命线。首选git
,让开发者主动感知仓库管理,生命周期才完整灵动。
所有不以
VCS
为一等公民的软件流程都是耍流氓!都会被遗忘而僵死!
使用VCS
管理代码、发布/版本管理,在VCS
上工作流展开有效的项目流程管理和高效的开发协同。
@startuml | |
Bob->Alice : hello | |
@enduml |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
条件概率公式: | |
P(A|B) = P(AB)/P(B) | |
P(AB) = P(A)P(B|A) = P(B)P(A|B) | |
P(A|B) = P(A)P(B|A)/P(B) | |
全概率公式: | |
P(A) = P(B1)P(A|B1) + P(B2)P(A|B2) + ... // B1,B2...是全集 |
#!/bin/bash | |
colorEcho() { | |
local color="$1" | |
shift | |
if [ -c /dev/stdout ] ; then | |
# if stdout is console, turn on color output. | |
echo -ne "\033[1;${color}m" | |
echo -n "$@" | |
echo -e "\033[0m" | |
else |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# find the months which First day is monday | |
# My related Blog: http://oldratlee.com/post/2012-11-13/1-st-day-is-monday-month-count | |
dayCountOfMonthOfYear = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
dayCountOfMonthOfLeapYear = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
print "Day count of non-leap year: ", sum(dayCountOfMonthOfYear) | |
# 365, day count of non-leap year | |
print "Day count of leap year: ", sum(dayCountOfMonthOfLeapYear) | |
# 366, day count of Leap year |
#!/bin/bash | |
# open -a '/Applications/Sublime Text 2.app' "$@" | |
open -a 'Sublime Text 2' "$@" |
import org.junit.Test; | |
import java.math.BigInteger; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.fail; | |
/** | |
* @author ding.lid | |
*/ |
/** 通过的UT Case: | |
assertEquals(0, Candy.calcCandyCount(new int[]{})); | |
assertEquals(1, Candy.calcCandyCount(new int[]{1,})); | |
assertEquals(1, Candy.calcCandyCount(new int[]{100,})); | |
assertEquals(2, Candy.calcCandyCount(new int[]{1, 1,})); | |
assertEquals(3, Candy.calcCandyCount(new int[]{1, 2,})); | |
assertEquals(3, Candy.calcCandyCount(new int[]{2, 1,})); |