Skip to content

Instantly share code, notes, and snippets.

View digitalasia's full-sized avatar

digitalasia digitalasia

View GitHub Profile
@vigorouscoding
vigorouscoding / Create App Icons.jsx
Last active January 24, 2017 20:05 — forked from twonjosh/Create iOS Icons.jsx
Photoshop script for automated generation of iOS and Mac App Icons (http://www.vigorouscoding.com/2013/02/photoshop-script-for-app-icon-creation-for-ios-and-mac-apps/) - Enabled non-PNG file support. - Removed some (IMHO unnecessary) checks since the user can load PSDs or some kind of vector-based image - Added a dialog to select for which platf…
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete permanently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@happyrobots
happyrobots / NSArray+BinarySearch.h
Created May 8, 2013 06:24
An Objective-C BinarySearch category on Array of which members are String. http://www.getappninja.com/blog/implementing-a-binary-search-in-ios
@interface NSArray (BinarySearch)
// Before calling this method, make sure this array is an array of string and it is sorted using sortedArrayUsingSelector:
// NSArray *sortedArray = [array sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
- (unsigned long)indexOfStringUsingBinarySearch:(NSString *)searchString;
@end
@alanzeino
alanzeino / Strong UINavigationBar colour
Last active April 26, 2020 23:34
Combining a strong colour with a blurred and translucent UINavigationBar in iOS 7.
// cheers to @stroughtonsmith for helping out with this one
UIColor *barColour = [UIColor colorWithRed:0.13f green:0.14f blue:0.15f alpha:1.00f];
UIView *colourView = [[UIView alloc] initWithFrame:CGRectMake(0.f, -20.f, 320.f, 64.f)];
colourView.opaque = NO;
colourView.alpha = .7f;
colourView.backgroundColor = barColour;
self.navigationBar.barTintColor = barColour;