Skip to content

Instantly share code, notes, and snippets.

View rodericj's full-sized avatar
🐔
chicken

Roderic Campbell rodericj

🐔
chicken
View GitHub Profile
(lldb) po [self.contentView _autolayoutTrace]
UIWindow:0x7bb6bee0
| UIView:0x7ae41990
| | MainLayerView:0x7b843e20
| | | FadingView:0x7ae6e2e0
| | | | UIView:0x7ae5f1d0
| | | | | UIImageView:0x7ae65810
| | | | | CatalinaAugustImages.bund...:0x7ae60130
| | | | | UIView:0x7ae5f870
#Take the last commit message, show only the message, remove the hash, send as a note to harvest
git log -1 --pretty=oneline --abbrev-commit|cut -c9-|xargs hcl note
diff --git a/Catalina/Podfile b/Catalina/Podfile
index 0e007db..8ee0f49 100644
--- a/Catalina/Podfile
+++ b/Catalina/Podfile
@@ -16,7 +16,7 @@ pod 'ReactiveViewModel'
pod 'libextobjc'
pod 'InnerBand'
pod 'SkyLab'
-pod 'SDWebImage', '< 3.7'
+pod 'SDWebImage'
diff --git a/AetherCone/AetherCone/TuneKey.swift b/AetherCone/AetherCone/TuneKey.swift
index 7332d8d..62218c2 100644
--- a/AetherCone/AetherCone/TuneKey.swift
+++ b/AetherCone/AetherCone/TuneKey.swift
@@ -22,7 +22,8 @@ enum TuneKey{
case RdioEmptyKey
init(_ key:String){
- switch key.substringToIndex(1){
+ var firstLetter : String = key.bridgeToObjectiveC().substringWithRange(NSMakeRange(0,1))
import Cocoa
class StringHolder {
var a : String?
var b : String?
var c : String?
func naiveDescription() -> String {
return a! + b! + c!
[[headerView.clearSearchButton rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(id x) {
@strongify(headerView)
[headerView.textField setText:@""];
headerView.clearSearchButton.hidden = YES;
headerView.rightButton.hidden = YES;
}];
[[(id)self.tableView.delegate rac_signalForSelector:@selector(scrollViewDidScroll:)] subscribeNext:^(RACTuple *tuple) {
UITableView *tableView = [[tuple allObjects] firstObject];
if (tableView.contentOffset.y < -90) {
@strongify(self)
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
}
}];
TuneObjectCell
@weakify(headerView)
RAC(headerView.textField, font) = [headerView.textField.rac_textSignal map:^id(NSString * s)
{
@strongify(headerView)
UIFont *thin = [UIFont fontWithName:FONT_THIN size:headerView.textField.font.pointSize];
UIFont *normal = [UIFont fontWithName:FONT_LIGHT size:headerView.textField.font.pointSize];
return [s length] == 0 ? thin : normal;
}];
RAC(self.rightButton, hidden) = [self.searchTextView.rac_textSignal map:^id(NSString *value) {
return [NSNumber numberWithBool:[value length] == 0];
}];