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 | |
export CONVERSIONAPP="/Applications/ImageMagick-6.5.8//bin/convert" | |
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Applications/ImageMagick-6.5.8//lib" | |
export MAGICK_HOME="/Applications/ImageMagick-6.5.8/" | |
$CONVERSIONAPP SpecificArtAssets/icons/512x512.png -resize 57x57 GeneratedFiles/Icon.png | |
$CONVERSIONAPP SpecificArtAssets/icons/512x512.png -resize 114x114 GeneratedFiles/[email protected] | |
$CONVERSIONAPP SpecificArtAssets/icons/512x512.png -resize 72x72 GeneratedFiles/Icon-72.png | |
$CONVERSIONAPP SpecificArtAssets/icons/512x512.png -resize 29x29 GeneratedFiles/Icon-Small.png | |
$CONVERSIONAPP SpecificArtAssets/icons/512x512.png -resize 50x50 GeneratedFiles/Icon-Small-50.png |
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
I've been having some connectivity problems off and on the last few | |
weeks due to storms taking out some combination of power/internet or | |
damaging some of the networking equipment here (in spite of the surge | |
protectors, etc in place) as well as a incident with bad wiring | |
getting worse due to storms/electrical shorts. | |
While the iPhone's tethering was a stopgap measure that helped in the | |
meanwhile, it was by no means a final solution, nor did it allow | |
efficient completion of the tasks at hand nor good communication while | |
things were going on as the phone would overheat if I left it running |
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
[UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionAllowUserInteraction|UIViewAnimationOptionBeginFromCurrentState animations:^(void){ | |
self.clippingContainerView.alpha = 1.0; | |
} completion:^(BOOL finished){ | |
[UIView animateWithDuration:0.5 delay:5.5 options:UIViewAnimationOptionAllowUserInteraction|UIViewAnimationOptionBeginFromCurrentState animations:^(void){ | |
self.clippingContainerView.alpha = 0.0; | |
} completion:^(BOOL finished){ | |
self.state = cvcStateHiddenControls; | |
}]; | |
} | |
]; |
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
#include "limits.h" | |
volatile int char_min = CHAR_MIN; | |
void limitPrint(void) { | |
printf("Size of Boolean type is %d byte(s)\n\n", | |
(int)sizeof(_Bool)); | |
printf("Number of bits in a character: %d\n", |
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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function parse_git_branch_remote { | |
git rev-parse --git-dir > /dev/null 2>&1 | |
if [ $? -eq 0 ]; then |
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
! DO NOT CHANGE THIS FILE MANUALLY ! | |
STYLE_NAME=Apple | |
S_NAME=array | |
S_BEG | |
name[SOME] | |
S_END | |
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
- (NSArray*)sortArrayByY:(NSArray*)array{ | |
return [array sortedArrayUsingComparator:^NSComparisonResult(id label1, id label2) { | |
if ([label1 frame].origin.y < [label2 frame].origin.y) return NSOrderedAscending; | |
else if ([label1 frame].origin.y > [label2 frame].origin.y) return NSOrderedDescending; | |
else return NSOrderedSame; | |
}]; | |
} | |
- (void)clearTextInArray:(NSArray*)array{ | |
for (UILabel* label in array){ |
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
@implementation SwiperViewController | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
UIScreenEdgePanGestureRecognizer *edgePanLeft = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(handleEdgePanLeft:)]; | |
edgePanLeft.edges = UIRectEdgeLeft; | |
[self.view addGestureRecognizer:edgePanLeft]; | |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
BasedOnStyle: Chromium | |
AlignTrailingComments: true | |
BreakBeforeBraces: Stroustrup | |
ColumnLimit: 0 | |
IndentWidth: 4 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
AllowShortIfStatementsOnASingleLine: true | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
PointerBindsToType: false |
OlderNewer