Skip to content

Instantly share code, notes, and snippets.

View bradtheappguy's full-sized avatar

Brad Anderson bradtheappguy

View GitHub Profile
@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"];
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
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
KCWXTEAM_Brian
michaelmckimmon
n3bxh
WxCh8rTodd
Stormchaser2010
arkansasstorm
deanowx
WXtremeChaser
Will_Wilkens
kywxchaser
@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"
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/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