- printer off
- hold tiny reset button on the back
- keep holding tiny reset button for around 20 seconds while powering on the printer
- printer on and booted
- hold tiny reset button for around 5 seconds
desc "Create a new version tag and push a new podspec" | |
task :release do | |
require 'cocoapods' | |
require 'colored' | |
version = Pod::Specification.from_file(Pathname.pwd + 'MyLib.podspec').version | |
puts "Releasing version `#{version}'. Is that correct? (y/n)" | |
if $stdin.gets.strip.downcase == 'y' | |
sh "git tag -a #{version} -m 'Release #{version}'" | |
sh "git push --tags" | |
sh "pod lint" |
@implementation XCDUUID | |
+ (void) load | |
{ | |
// query runtime if NSUUID class already exists, if so => done | |
if (objc_getClass("NSUUID")) | |
{ | |
return; | |
} | |
#import <mach/mach.h> | |
float cpu_usage() | |
{ | |
kern_return_t kr; | |
task_info_data_t tinfo; | |
mach_msg_type_number_t task_info_count; | |
task_info_count = TASK_INFO_MAX; | |
kr = task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)tinfo, &task_info_count); |
@interface SomeViewController () | |
// Declare some collection properties to hold the various updates we might get from the NSFetchedResultsControllerDelegate | |
@property (nonatomic, strong) NSMutableIndexSet *deletedSectionIndexes; | |
@property (nonatomic, strong) NSMutableIndexSet *insertedSectionIndexes; | |
@property (nonatomic, strong) NSMutableArray *deletedRowIndexPaths; | |
@property (nonatomic, strong) NSMutableArray *insertedRowIndexPaths; | |
@property (nonatomic, strong) NSMutableArray *updatedRowIndexPaths; | |
@end |
sloccount --details . | sort -n -k1,1 |
#import <UIKit/UIKit.h> | |
@interface UIView (SMFrameAdditions) | |
@property (nonatomic, assign) CGPoint $origin; | |
@property (nonatomic, assign) CGSize $size; | |
@property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties | |
@property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect | |
@end |
user="OliverLetterer" | |
master="CocoaPods" | |
pod-lint() { | |
pod spec lint --local --verbose | |
} | |
pod-release() { | |
git add -A && git commit -m "Release "$1"." | |
git tag $1 |
// Created by Nick Snyder on 11/13/12. | |
// NDCollectionViewFlowLayout.h | |
@interface NDCollectionViewFlowLayout : UICollectionViewFlowLayout | |
@end |
typedef struct CAColorMatrix { | |
float m11, m12, m13, m14, m15; | |
float m21, m22, m23, m24, m25; | |
float m31, m32, m33, m34, m35; | |
float m41, m42, m43, m44, m45; | |
} CAColorMatrix; | |
@interface CAFilter : NSObject | |
@property(copy) NSString *name; |