This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "NSObject+Extensions.h" | |
@interface UIView (Extensions) | |
+ (UIView*)loadView:(Class)_viewClass; | |
@end | |
@implementation UIView (Extensions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@protocol ParameterSliderViewDelegate; | |
@interface ParameterSliderView : UIView | |
@property(nonatomic, weak) id<ParameterSliderViewDelegate> delegate; | |
@property(nonatomic, strong) UIView* parameterView; | |
@property(nonatomic, strong) UIView* parameterViewBorder; | |
@property(nonatomic, strong) UIPanGestureRecognizer* panGesture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UIImage*)blendedImage { | |
GPUImagePicture* bluredImage = [[GPUImagePicture alloc] initWithImage:self.filterImage]; | |
GPUImageFilterGroup* blurFilterGroup = [[GPUImageFilterGroup alloc] init]; | |
GPUImageFilter* colorOverlayfilter = [[GPUImageFilter alloc] initWithFragmentShaderFromFile:@"WhiteColorOverlay"]; | |
GPUImageGaussianBlurFilter* gaussainBlur = [[GPUImageGaussianBlurFilter alloc] init]; | |
[gaussainBlur setBlurSize:3.0f]; | |
[blurFilterGroup addFilter:colorOverlayfilter]; | |
[blurFilterGroup addFilter:gaussainBlur]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import "NSManagedObject+DataManager.h" | |
@interface DataManager : NSObject | |
@property (nonatomic, strong, readonly) NSManagedObjectModel* managedObjectModel; | |
@property (nonatomic, strong, readonly) NSManagedObjectContext* managedObjectContext; | |
@property (nonatomic, strong, readonly) NSPersistentStoreCoordinator* persistentStoreCoordinator; | |
@property (nonatomic, strong) NSURL* modelURL; | |
@property (nonatomic, strong) NSString* persistantStoreName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface UIImage (Extensions) | |
+ (UIImage*)blankImage:(CGSize)_size; | |
+ (UIImage*)blankImage:(CGSize)_size withColor:(UIColor*)_color; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 "============================================================================ | |
2 "File: scala.vim | |
3 "Description: Syntax checking plugin for syntastic.vim | |
4 "Maintainer: Rickey Visinski <rickeyvisinski at gmail dot com> | |
5 "License: This program is free software. It comes without any warranty, | |
6 " to the extent permitted by applicable law. You can redistribute | |
7 " it and/or modify it under the terms of the Do What The Fuck You | |
8 " Want To Public License, Version 2, as published by Sam Hocevar. | |
9 " See http://sam.zoy.org/wtfpl/COPYING for more details. | |
10 " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
source "$HOME/.rvm/scripts/rvm" | |
lolcommits --capture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Build open source Swift in a specified directory after cloning the appropriate Github repos. | |
# Select an alternative Github account (such as hpux735 for William Dillon's forks) to clone swift, swift-llvm, swift-lldb, and swift-corelibs-foundation repos from. | |
ALTREPO="apple" | |
# Interval for collecting vmstat, df, and CPU temperature data | |
STATINTERVAL=300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
if config.name == 'Debug' | |
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['$(inherited)', '-D DEBUG'] | |
end | |
end | |
end | |
end |