I hereby claim:
- I am andyibanez on github.
- I am andyibanez (https://keybase.io/andyibanez) on keybase.
- I have a public key ASCj3Fj-GRCdiIe5ui31vcgyc-h5VATZ1mzfzjpUs0uHTAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Takes a 1024x1024 app icon and produces all app icon sizes based on it. | |
# Requires imagemagick to work. | |
# USAGE iair ORIGINAL_FILE PATH_TO_OUTPUT_DIR | |
# Example: iair icon.png . | |
original_file=$1 | |
output_dir=$2 |
struct ShoppingItem { | |
let name: String | |
let price: Float | |
init(name: String, price: Float) { | |
self.name = name | |
self.price = price | |
} | |
} |
//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] |
#!/bin/bash | |
# class-dump class-dump-z | |
# - main.h | |
# CDStructures.h main-Structs.h | |
# xxx-Protocol.h xxx.h | |
usage () | |
{ | |
echo "Usage: $0 executable target_directory" |