This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)drawcagradientlayer:(CGRect)rect{ | |
CAGradientLayer *gradient = [CAGradientLayer layer]; | |
gradient.colors = @[(id)[UIColor colorWithRed:0 green:0.8 blue:0 alpha:1.0].CGColor, // light gray | |
(id)[UIColor colorWithRed:0 green:0.8 blue:0 alpha:0.3].CGColor]; // lighter gray | |
// 创建一个Path句柄 | |
CGMutablePathRef pathRef = CGPathCreateMutable(); | |
// 初始化该path到一个初始点 | |
CGPathMoveToPoint(pathRef, &CGAffineTransformIdentity, kYAxisLabelWidth, rect.size.height/2); | |
// 添加一条直线,从初始点到该函数指定的坐标点 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function usage() | |
{ | |
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n"); | |
exit(1); | |
} | |
$opts = getopt('i:p:z:'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function usage() | |
{ | |
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n"); | |
exit(1); | |
} | |
$opts = getopt('i:p:z:'); |