Skip to content

Instantly share code, notes, and snippets.

View bradtheappguy's full-sized avatar

Brad Anderson bradtheappguy

View GitHub Profile
#!/bin/bash
set -e
[ $# -eq 0 ] && {
echo "Usage: $0 new_branch_name \"Your commit message\"";
echo " -Stashes local changes.
-Creates new branch.
-Adds and commits all changes
-Pushes to github and creates branch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Things to check when writing a view controller
Keyboard
Does your content properly move out of the way of a keyboard?
Can the keyboard be dismissed?
Is the proper keyboard (numric, email, etc) set for each text field
Does your UI acount for Split Keyboard on ipad
Does your UI account for a toolbar above the keyboard
Does your UI work well with 3rd party keyboards
Does your UI work well when using a bluetooth keyboard
@bradtheappguy
bradtheappguy / create_ota_manifest.sh
Created April 4, 2015 07:50
Create an iOS Plist file using plistbuddy (OSX)
#!/bin/bash
#Creates an iOS OTA (Over the Air) Minifest File
URL="https://sywl.theappguy.guru/relayrunner/0.2.6/RunnerApp_0.2.6ent.ipa"
BUNDLE_ID="com.example.yourbundleid"
BUNDLE_VERSION="0.0.1"
TITLE="Your App Name"
FILE="yourmanifestfile.plist"
KCWXTEAM_Brian
michaelmckimmon
n3bxh
WxCh8rTodd
Stormchaser2010
arkansasstorm
deanowx
WXtremeChaser
Will_Wilkens
kywxchaser
http://www.facebook.com/dean.meeks
http://www.facebook.com/brian.davidson.108889
http://www.facebook.com/thieszen1
http://www.facebook.com/people/James-Smith/100000607886137
http://www.facebook.com/AlexMaldonadoGuitar
http://www.facebook.com/notanee
https://www.facebook.com/pages/Vortex-Chasers/314516422008
http://www.facebook.com/profile.php?id=100001934282269
http://www.facebook.com/union8
http://www.facebook.com/NorthMississippiStormChasers
https://acme-corporate-site.herokuapp.com/
https://acme-corporate-site.herokuapp.com/1/index.html
https://acme-corporate-site.herokuapp.com/2/index.html
https://acme-corporate-site.herokuapp.com/3/index.html
https://acme-corporate-site.herokuapp.com/4/index.html
https://acme-corporate-site.herokuapp.com/5/index.html
https://acme-corporate-site.herokuapp.com/myradar/index.html
@bradtheappguy
bradtheappguy / gist:6771016
Created September 30, 2013 22:07
iOS Effects SDK customization
Exclusive Crop Mode
Using NSUserDefaults, setting the R1ExclusiveCropMode key to one of the following values prior to the display of the R1 EffectsSDK screens has the effect of locking the crop behavior in one mode and hiding the user interface that allows for the various default cropping methods.
static const NSUInteger R1CropModeSquare = 0;
static const NSUInteger R1CropModeCustom = 1;
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithInteger:R1CropModeCustom] forKey:@"R1ExclusiveCropMode"];
@bradtheappguy
bradtheappguy / gist:5861045
Created June 25, 2013 18:32
RadiumOne PhotoEffects SDK Android Integration

Introduction

The Android R1 Photo Effects SDK allows developers to include a suite of image effects in their applications.

The zip file includes the R1 Photo Effects SDK and an SDK demo app for installation reference.

Eclipse Demo Installation

1. Verify that the latest android tools have been installed in the SDK Manager.

@bradtheappguy
bradtheappguy / gist:5758987
Created June 11, 2013 17:40
Reorder the tabs for the R1 Effects SDK
//To reorder the tabs in the R1 Effects SDK for iOS
//add the following code before enabling the SDK
NSArray *demoTabs = @[@"R1TabEffects", @"R1TabBorders", @"R1TabStickers", @"R1TabText"];
[[NSUserDefaults standardUserDefaults] setObject:demoTabs forKey:@"R1TabSetupList"];