This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application/vnd.openxmlformats-officedocument.wordprocessingml.document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use like this: | |
# QuickConfig.api(:spreedly, 'SPREEDLY_CORE_LOGIN', 'SPREEDLY_CORE_SECRET') do | |
# SpreedlyCore.configure(ENV['SPREEDLY_CORE_LOGIN'], | |
# ENV['SPREEDLY_CORE_SECRET'], | |
# SPREEDLY_CORE[Rails.env]['token']) | |
# end | |
# | |
# or | |
# | |
# QuickConfig.api(:janrain, 'JANRAIN_API_KEY') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function delayedTransition(delayFraction, baseTransition) { | |
return function(pos) { | |
if (pos < delayFraction) | |
return 0; | |
else | |
return baseTransition((pos - delayFraction) / (1 - delayFraction)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macruby-0.6 > " hello, world ".stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet) | |
=> "hello, world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"shipping": { | |
"city": "Efland", | |
"address": "8323 Hertford Dr", | |
"zip": "27243", | |
"state": "NC" | |
}, | |
"billing": { | |
"address": "8323 Hertford Dr", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"data":{"customer_id":4279,"email":"jimmy@groopdinc.com"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Airship/StoreFront/StoreFrontDelegate.h b/Airship/StoreFront/StoreFrontDelegate.h | |
index 98ceb74..5d6c06a 100644 | |
--- a/Airship/StoreFront/StoreFrontDelegate.h | |
+++ b/Airship/StoreFront/StoreFrontDelegate.h | |
@@ -32,5 +32,6 @@ | |
@optional | |
-(void)storeFrontDidHide; | |
-(void)storeFrontWillHide; | |
+-(BOOL)shouldDisplayProduct:(UAProduct*)product; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Airship/StoreFront/UAInventory.m b/Airship/StoreFront/UAInventory.m | |
index 92563d0..9088f85 100644 | |
--- a/Airship/StoreFront/UAInventory.m | |
+++ b/Airship/StoreFront/UAInventory.m | |
@@ -55,9 +55,13 @@ | |
return productList; | |
} | |
+- (NSArray*)sortedKeys { | |
+ return [[productList allKeys] sortedArrayUsingSelector:@selector(compare:)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSLog(@"BUILD VERSION: %@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ -x /usr/local/bin/git ]; then | |
export GIT=/usr/local/bin/git | |
elif [ -x /usr/bin/git ]; then | |
export GIT=/usr/bin/git | |
else | |
exit 0 |