Skip to content

Instantly share code, notes, and snippets.

➜ XBImageFilters git:(master) ✗ pod lib lint
-> XBImageFilters (1.1.0)
- WARN | [source] The version should be included in the Git tag.
- NOTE | [iOS] [xcodebuild] /Users/xissburg/Documents/Projects/XBImageFilters/XBImageFilters/XBImageFilters/XBFilteredImageView.m:46:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'GLint' (aka 'int') [-Wshorten-64-to-32]
- NOTE | [iOS] [xcodebuild] /Users/xissburg/Documents/Projects/XBImageFilters/XBImageFilters/XBImageFilters/XBFilteredImageView.m:46:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'GLint' (aka 'int') [-Wshorten-64-to-32]
- NOTE | [iOS] [xcodebuild] /Users/xissburg/Documents/Projects/XBImageFilters/XBImageFilters/XBImageFilters/XBFilteredVideoView.m:352:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'GLsizei' (aka 'int') [-Wshorten-64-to-32]
- NOTE | [iOS] [xcodebuild] /Users/xissburg/Documents/P
➜ XBImageFilters git:(master) ✗ pod trunk push
[!] Found podspec `XBImageFilters.podspec`
Validating podspec
-> XBImageFilters (1.1.0)
- WARN | [source] The version should be included in the Git tag.
- ERROR | [iOS] [xcodebuild] XBImageFilters/XBImageFilters/UIImage+XBImageFilters.m:11:9: fatal error: 'XBFilteredImageView.h' file not found
- ERROR | [iOS] The `resources` pattern did not match any file.
[!] The podspec does not validate.
#import <UIKit/UIKit.h>
@interface UntouchableView : UIView
@property (nonatomic, copy) void (^didTouch)(CGPoint point, UIEvent *event);
@end
#import "UntouchableView.h"
@implementation UntouchableView
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
{
if (!CGRectContainsPoint(self.bounds, point)) {
return NO;
}
for (UIView *subview in self.subviews) {
query.each(function(result) {
console.log("Sending email to " + result.get("email"));
return SendGrid.sendEmail({
...
})
}).then(function() {
status.success("SUccess.");
}, function(error) {
status.error("Got an error: " + error.code + ", " + error.message);
});
@property (nonatomic, strong) dispatch_source_t serverPollTimer;
/* ___ */
__weak typeof(self) weakSelf = self;
self.serverPollTimer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, dispatch_get_main_queue());
dispatch_source_set_timer(self.serverPollTimer, dispatch_walltime(NULL, 7*NSEC_PER_SEC), 7*NSEC_PER_SEC, 1e8);
dispatch_source_set_event_handler(self.serverPollTimer, ^{
[weakSelf updateCurrentJobState];
});
class A {
func test() {
print("A")
}
}
class B: A {
override func test() {
print("B")
}
public protocol PagedTableLoaderDelegate<T: PFObject> {
func pagedTableLoader(pagedTableLoader: PagedTableLoader<T>, queryFromDate fromDate: NSDate?, toDate: NSDate?, count: Int) -> PFQuery
}
Sent: 2800, total: 343432, expected: 1179608, 29.114079%
Sent: 2800, total: 335408, expected: 1305534, 25.691250%
Sent: 2800, total: 338208, expected: 1305534, 25.905722%
Sent: 2800, total: 341008, expected: 1305534, 26.120193%
Sent: 2800, total: 343808, expected: 1305534, 26.334665%
Sent: 2800, total: 346608, expected: 1305534, 26.549137%
Sent: 2800, total: 349408, expected: 1305534, 26.763607%
Sent: 2800, total: 346232, expected: 1179608, 29.351446%
Sent: 2800, total: 349032, expected: 1179608, 29.588812%
Sent: 2800, total: 352208, expected: 1305534, 26.978079%
- (void)tapAction:(UITapGestureRecognizer *)sender
{
CATransform3D t = CATransform3DIdentity;
t = CATransform3DRotate(t, -M_PI/6, 0, 0, 1);
t = CATransform3DTranslate(t, 0, 200, 0);
[CATransaction begin];
[CATransaction setCompletionBlock:^(void) {
[CATransaction begin];
[CATransaction setValue:[NSNumber numberWithDouble:1] forKey:kCATransactionAnimationDuration];