Skip to content

Instantly share code, notes, and snippets.

Andy Ibanez AndyIbanez

Block or report user

Report or block AndyIbanez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AndyIbanez /
Created Apr 30, 2017
Command line script to resize an iOS app icon to all the sizes specified by Apple.
# Takes a 1024x1024 app icon and produces all app icon sizes based on it.
# Requires imagemagick to work.
# Example: iair icon.png .
View Making Swift Objects Behave Like an Array
struct ShoppingItem {
let name: String
let price: Float
init(name: String, price: Float) { = name
self.price = price
AndyIbanez / UIColorFromHex Macro
Created Jan 19, 2014
Get a UIColor out of a Hex string representation.
View UIColorFromHex Macro
//I did not write this macro. Got it from somewhere else years ago.
// example usage: [view setBackgroundColor:UIColorFromHex(0x6758c8)];
#define UIColorFromHex(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 green:((float)((hexValue & 0xFF00) >> 8))/255.0 blue:((float)(hexValue & 0xFF))/255.0 alpha:1.0]
AndyIbanez /
Last active Oct 7, 2015
class-dump-z a whole directory of private frameworks.
# class-dump class-dump-z
# - main.h
# CDStructures.h main-Structs.h
# xxx-Protocol.h xxx.h
usage ()
echo "Usage: $0 executable target_directory"
You can’t perform that action at this time.