Skip to content

Instantly share code, notes, and snippets.

View chenillen's full-sized avatar
🤩

Allen C. chenillen

🤩
View GitHub Profile
Andorra|AD|Andorra la Vella
United Arab Emirates|AE|Abu Dhabi
Afghanistan|AF|Kabul
Antigua and Barbuda|AG|St. John's
Anguilla|AI|The Valley
Albania|AL|Tirana
Armenia|AM|Yerevan
Netherlands Antilles|AN|Willemstad
Angola|AO|Luanda
Antarctica|AQ|
北京|Beijing|CN
上海|Shanghai|CN
广州|Guangzhou|CN
深圳|Shenzhen|CN
西安|Xian|CN
成都|Chengdu|CN
重庆|Chongqing|CN
天津|Tianjin|CN
武汉|Wuhan|CN
沈阳|Shenyang|CN
# current version of git
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
{
//// Bezier 2 Drawing
UIBezierPath* bezier2Path = UIBezierPath.bezierPath;
[bezier2Path moveToPoint: CGPointMake(97.5, 68.12)];
[bezier2Path addCurveToPoint: CGPointMake(93.5, 83.12) controlPoint1: CGPointMake(97.5, 68.12) controlPoint2: CGPointMake(99.79, 80.7)];
[bezier2Path addCurveToPoint: CGPointMake(108.5, 74.12) controlPoint1: CGPointMake(87.21, 85.54) controlPoint2: CGPointMake(105.36, 86.23)];
[UIColor.darkGrayColor setStroke];
bezier2Path.lineWidth = 1;
[bezier2Path stroke];