Skip to content

Instantly share code, notes, and snippets.

View rodericj's full-sized avatar
🐔
chicken

Roderic Campbell rodericj

🐔
chicken
View GitHub Profile
[[self.currentStream currentTrackSignal] subscribeNext:^(RACSignal * signal)
{
[signal subscribeNext:^(TuneTrack * track)
{
[self showInfoForTrack:track];
}];
}];
/**
* Internal method that sends updates to all of the device's subscribers, allowing them to act on the new information.
* Should be called whenever the device's state has changed or when the device has received an update.
*/
- (void)updateAllSubscribers
{
// Use a copy to avoid mutation while enumerating. This makes it possible to miss an update, so fix that at some
// point.
NSMutableArray * tempCopy = [self.deviceSubscribers copy];
for(id<RACSubscriber> subscriber in tempCopy){
RAC(cell, type) = [cluster map:^id(NSNumber *clusteringState) {
switch ([clusteringState integerValue]) {
case ClusterNone:
NSLog(@"cluster state is Not Clustered for %@", device.name);
break;
case ClusterMaster:
NSLog(@"cluster state is Clustered and master");
break;
02:35:34 {roderic-development} ~/dev/ClientIOS$ fui find
AetherCommon/AetherUtils/AFURLConnectionOperation+MorseAuthentication.h
AetherCommon/AetherUtils/AetherUtils.h
AetherCommon/AetherUtils/RACStream+String.h
AetherCommon/AetherUtils/Third-Party Utils/GBPing/GBPing.h
AetherCommon/AetherUtils/Third-Party Utils/SVPullToRefresh.h
AetherCommon/AetherUtils/UIImageView+Aether.h
AetherCommon/AetherUtils_mac/NSArray+MacUtils.h
Catalina/CatalinaUI/MainLayer/settings/MorseAccountTableViewCell.h
Catalina/CatalinaUI/SmallerDeviceIcon.h
DEVRKGGCCYQPWFHR62NT]
+ (void)drawSmallerIcon
{
//// Color Declarations
UIColor* color0 = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 1];
//// Page-1
{
//// Group 48
{
//// Imported-Layers Drawing
//// Imported-Layers Drawing
UIBezierPath* importedLayersPath = UIBezierPath.bezierPath;
[importedLayersPath moveToPoint: CGPointMake(9.49, 14.48)];
[importedLayersPath addCurveToPoint: CGPointMake(7.15, 14.25) controlPoint1: CGPointMake(8.83, 14.48) controlPoint2: CGPointMake(7.64, 14.45)];
[importedLayersPath addCurveToPoint: CGPointMake(6.4, 13.48) controlPoint1: CGPointMake(6.72, 14.05) controlPoint2: CGPointMake(6.52, 13.76)];
[importedLayersPath addCurveToPoint: CGPointMake(6.36, 12.41) controlPoint1: CGPointMake(6.28, 13.2) controlPoint2: CGPointMake(6.21, 12.85)];
[importedLayersPath addCurveToPoint: CGPointMake(8.03, 10.31) controlPoint1: CGPointMake(6.59, 11.81) controlPoint2: CGPointMake(7.72, 10.63)];
[importedLayersPath addLineToPoint: CGPointMake(9.78, 14.47)];
[importedLayersPath addCurveToPoint: CGPointMake(9.49, 14.48) controlPoint1: CGPointMake(9.7, 14.47) controlPoint2: CGPointMake(9.
+ (void)drawCanvas5C
{
//// Color Declarations
UIColor* color0 = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 1];
//// Page-1
{
//// Portrait---5/5S/5C
{
//// Imported-Layers Drawing
@interface ConeDeviceIcon : NSObject
// Drawing Methods
+ (void)drawCanvas5C;
+ (void)drawCanvas1;
@end
+ (FOMarker *)markerWithIconURL:(NSString *)iconURL color:(UIColor *)color {
UIImageView *pinImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
UIImage *pinImage = [UIImage imageNamed:@"mapPin"];// [self ipMaskedImageNamed:@"mapPin" color:color];
pinImageView.image = pinImage;
UIImageView *iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
iconImageView.image = [UIImage imageNamed:@"poweredByFoursquare_36x36"];
// Taken out to simplify and troubleshoot