I hereby claim:
- I am yqiang on github.
- I am yqiang (https://keybase.io/yqiang) on keybase.
- I have a public key whose fingerprint is 77E1 9583 4D66 B8CF 3567 D33A 2A04 68A8 EF4C 1941
To claim this, I am signing this object:
public var rating: Int32 { | |
get { | |
self.willAccessValue(forKey: "rating") | |
let rating = self.primitiveValue(forKey: "rating") | |
self.didAccessValue(forKey: "rating") | |
return rating as! Int32 | |
} | |
// Whenever we modify the rating we also tell our parent to trigger KVO notifications for the one-to-many | |
// relationship. This makes observing for these changes easier. |
diff --git a/MyFitnessPal.xcodeproj/project.pbxproj b/MyFitnessPal.xcodeproj/project.pbxproj | |
index c3f0317..01609f6 100644 | |
--- a/MyFitnessPal.xcodeproj/project.pbxproj | |
+++ b/MyFitnessPal.xcodeproj/project.pbxproj | |
@@ -2587,7 +2587,7 @@ | |
B280CF041829822600CEC3CB /* EditFoodViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditFoodViewController.h; sourceTree = "<group>"; }; | |
B280CF051829822600CEC3CB /* EditFoodViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditFoodViewController.m; sourceTree = "<group>"; }; | |
B280CF09182982A400CEC3CB /* EditEmailSettingsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditEmailSettingsViewController.h; sourceTree = "<group>"; }; | |
- B280CF0A182982A400CEC3CB /* EditEmailSettingsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditEmail |
I hereby claim:
To claim this, I am signing this object:
[coordinates enumerateObjectsUsingBlock:^(NSValue *coordinateValue, NSUInteger idx, BOOL *stop) { | |
CLLocationCoordinate2D coordinate = [coordinateValue MKCoordinateValue]; | |
MKMapPoint p = MKMapPointForCoordinate(coordinate); | |
mapRect = MKMapRectUnion(mapRect, MKMapRectMake(p.x, p.y, 0, 0)); | |
}]; |
# remove_CLI_tools.sh | |
# written by cocoanetics:http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/ | |
# modified by yoneken | |
#!/bin/sh | |
RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom | |
RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist | |
RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom | |
RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist |
[locationAttributedString addAttribute:(NSString *)kCTUnderlineStyleAttributeName | |
value:@(kCTUnderlineStyleSingle | kCTUnderlinePatternDot) | |
range:locationNameRange]; | |
[locationAttributedString addAttribute:(NSString *)kCTUnderlineColorAttributeName | |
value:(id)[UIColor redColor].CGColor | |
range:locationNameRange]; |
[locationAttributedString addAttribute:(NSString *)kCTUnderlineStyleAttributeName | |
value:@(kCTUnderlineStyleSingle | kCTUnderlinePatternDot) | |
range:locationNameRange]; | |
[locationAttributedString addAttribute:(NSString *)kCTUnderlineColorAttributeName | |
value:(id)[UIColor redColor].CGColor | |
range:locationNameRange]; |
Sampling process 55129 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling fish (pid 55129) every 1 millisecond | |
Process: fish [55129] | |
Path: /usr/local/Cellar/fish/2.0.0/bin/fish | |
Load Address: 0x10b0ce000 | |
Identifier: fish | |
Version: ??? (???) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [55128] |
2012-12-05 15:26:51.277 HeyDay[609:907] CRASH: *** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0] | |
2012-12-05 15:26:51.538 HeyDay[609:907] Stack Trace: ( | |
0 CoreFoundation 0x3491c2bb <redacted> + 186 | |
1 libobjc.A.dylib 0x3bca997f objc_exception_throw + 30 | |
2 CoreFoundation 0x34867b75 <redacted> + 164 | |
3 HeyDay 0x00064403 -[TimelineDataEngine locationEventAtIndexPath:] + 134 | |
4 HeyDay 0x0002460d -[TimelineTableController tableView:heightForRowAtIndexPath:] + 76 | |
5 UIKit 0x34b32fe7 <redacted> + 2670 | |
6 UIKit 0x34b32557 <redacted> + 166 | |
7 UIKit 0x34b2fe87 <redacted> + 282 |
+ (dispatch_queue_t)dispatch_queue { | |
static dispatch_once_t pred = 0; | |
static dispatch_queue_t dispatch_queue = nil; | |
dispatch_once(&pred, ^{ | |
dispatch_queue = dispatch_queue_create("MyDispatchQueue", DISPATCH_QUEUE_SERIAL); | |
}); | |
return dispatch_queue; | |
} |