This file contains hidden or 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
| bundle exec sidekiq -d -L log/sidekiq.log -C config/sidekiq.yml -e development |
This file contains hidden or 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
| defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES |
This file contains hidden or 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
| ~/Library/MobileDevice/Provisioning\ Profiles/ |
This file contains hidden or 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/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
This file contains hidden or 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
| UIViewController *walkThru = [self.storyboard instantiateViewControllerWithIdentifier:@"WalkThroughScene"]; | |
| walkThru.providesPresentationContextTransitionStyle = YES; | |
| walkThru.definesPresentationContext = YES; | |
| [walkThru setModalPresentationStyle:UIModalPresentationOverCurrentContext]; | |
| [self.navigationController presentViewController:walkThru animated:YES completion:nil]; |
This file contains hidden or 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
| @interface YourViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { | |
| UIImageOrientation scrollOrientation; | |
| CGPoint lastPos; | |
| } | |
| - (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { | |
| if (tableView.isDragging) { | |
| UIView *myView = cell.contentView; | |
| CALayer *layer = myView.layer; | |
| CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity; |
This file contains hidden or 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 StdQueue : NSObject | |
| @property(nonatomic, readonly) BOOL empty; | |
| @property(nonatomic, readonly) NSUInteger size; | |
| @property(nonatomic, readonly) id front; | |
| @property(nonatomic, readonly) id back; | |
| - (void)enqueue:(id)object; |
This file contains hidden or 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/sh | |
| PROJ=`find . -name '*.xib' -o -name '*.[mh]'` | |
| for png in `find . -name '*.png'` | |
| do | |
| name=`basename $png` | |
| if ! grep -q $name $PROJ; then | |
| echo "$png is not referenced" | |
| fi | |
| done |
This file contains hidden or 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
| (•_•) | |
| <) )/ | |
| ./ \. | |
| (•_•) | |
| \( (> | |
| ./ \. | |
| (•_•) | |
| <) )~ |
This file contains hidden or 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
| AFHTTPRequestOperationManager *manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:[NSURL URLWithString:@"http://examplewebsite.com"]]; | |
| manager.requestSerializer = [AFHTTPRequestSerializer serializer]; | |
| [manager.requestSerializer setAuthorizationHeaderFieldWithUsername:@"userName" password:@"password"]; |