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
//改变图片颜色 | |
- (UIImage *)imageWithColor:(UIColor *)color | |
{ | |
UIGraphicsBeginImageContextWithOptions(self.size, NO, self.scale); | |
CGContextRefcontext = UIGraphicsGetCurrentContext(); | |
CGContextTranslateCTM(context, 0, self.size.height); | |
CGContextScaleCTM(context, 1.0, -1.0); | |
CGContextSetBlendMode(context, kCGBlendModeNormal); | |
CGRect rect = CGRectMake(0, 0, self.size.width, self.size.height); | |
CGContextClipToMask(context, rect, self.CGImage); |
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
🌟性能优化 | |
Android产品内存和cpu测试及优化方案 | |
一、如何测试: | |
1.第三方平台测试:testin,腾讯u测 | |
使用第三方平台工具测试当前app内存和cpu占用 |
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
GET /plus/v2whitelisted/people/lookup?includePeople=1&includeGal=1&type=phone&fields=kind,items(id,metadata(objectType,plusPageType,attributions),names,phoneNumbers(value,type,formattedType,canonicalizedForm),addresses(value,type,formattedType),images(url,metadata(container)),urls(value),placeDetails)&includePlaces=1&callType=outgoing&id=%2B441934834343 HTTP/1.1 | |
Authorization: Bearer xxxxxxxxxREDACTEDxxxxxxxxxxxxx | |
User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus 6 Build/MMB29S) | |
Host: www.googleapis.com | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
HTTP/1.1 200 OK | |
Expires: Fri, 29 Jan 2016 12:47:28 GMT |
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 python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
OlderNewer