I hereby claim:
- I am snown on github.
- I am logan (https://keybase.io/logan) on keybase.
- I have a public key whose fingerprint is 82AF 6207 4B8F E5D5 EC87 F8E3 8FF8 576D 0053 32A7
To claim this, I am signing this object:
#!/usr/bin/env bash | |
du -sk "$@" | sort -nr | cut -f2 | sed 's/.*/\"&\"/' | tr "\\n" " " | xargs du -sh |
#import <UIKit/UIKit.h> | |
@interface UIGestureRecognizer (NSStringFunctions) | |
/** | |
* Returns a string formatted to display the pertenent name of the | |
* `UIGestureRecognizerState` | |
* | |
* Often this just returns the text of the variable name after | |
* "UIGestureRecognizerState". For Example, `UIGestureRecognizerStatePossible` |
I hereby claim:
To claim this, I am signing this object:
@implementation Interceptor | |
+ (IMP)instanceMethodForSelector:(SEL)aSelector { | |
NSLog(@"instanceMethodForSelector:"); | |
IMP result = [super instanceMethodForSelector:aSelector]; | |
NSLog(@"+[super instanceMethodForSelector:%@] = %p", NSStringFromSelector(aSelector), result); | |
return result; | |
} |
- (void)addAnimation:(CAAnimation *)anim forKey:(NSString *)key { | |
DDLogVerboseMethodCall(@" %@", [anim debugDescription]); | |
CAAnimation *finalAnim = anim; | |
if ([key isEqualToString:@"position"] && [anim isKindOfClass:[CABasicAnimation class]]) { | |
CABasicAnimation *contentsRectAnim; | |
CALayer *presentationLayer = [self presentationLayer]; | |
if (presentationLayer) { | |
contentsRectAnim = [anim copy]; | |
contentsRectAnim.keyPath = @"contentsRect"; |
extension Array { | |
mutating func prepend(newitem: T) { | |
insert(newitem, atIndex: 0) | |
} | |
mutating func prepend(itemArray: Array) { | |
for (index, item) in enumerate(itemArray) { | |
insert(item, atIndex: index) | |
} | |
} | |
} |
#!/usr/bin/env bash | |
LAUNCH_LIST_PATH=/tmp/launchList | |
touch $LAUNCH_LIST_PATH | |
launchctl list > $LAUNCH_LIST_PATH | |
sudo launchctl list >> $LAUNCH_LIST_PATH | |
head -n 1 $LAUNCH_LIST_PATH | |
grep "$@" $LAUNCH_LIST_PATH |
// | |
// UITextView+MTRXUILabel.h | |
// Site Survey | |
// | |
// Created by Logan Holmes on 10/1/14. | |
// Copyright (c) 2014 Logan Holmes. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
<?php namespace App\Http\Controllers; | |
use App\Facades\QueryCache; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use App\Models\Account; | |
use DebugBar\DebugBar; | |
use Illuminate\Database\Eloquent\Builder as EloquentQuery; |
# flexraid - start/stop FlexRAID 2.0 | |
# | |
# This service starts up the FlexRaid process so that RAIDing of Data drives can resume | |
description "FlexRAID 2.0" | |
author "Logan Holmes" | |
start on runlevel [2345] | |
stop on runlevel [06] |