- ABestWeb
- PerformanceIN
- A4U
- Affiliate Window or Buy.at
- affiliate.com
class MyController < UIViewController | |
def viewDidLoad | |
@button = UIButton.alloc.init | |
@button.when_tapped do | |
weak_self = WeakRef.new(self) # <--- create a weak reference to self | |
@alert = UIAlertView.alertViewWithTitle "Alert", | |
message: "Message", | |
cancelButtonTitle: "Dismiss", |
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
# ... | |
navigation_appearance | |
#... | |
end | |
def navigation_appearance | |
# Background Color |
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
@nav_controller = UINavigationController.alloc.initWithRootViewController(UIViewController.alloc.init) | |
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) | |
@window.rootViewController = @nav_controller | |
@window.makeKeyAndVisible | |
@nav_controller.pushViewController(MyController.alloc.init, animated:true) | |
true | |
end |
def build_path | |
"build/iPhoneOS-6.0-Release/" | |
end | |
def ipa_name | |
'"Today\'s Shirts.ipa"' | |
end | |
def dsym_name | |
'"Today\'s Shirts.dSYM"' |
RavelServer::Application.configure do | |
# Enable threaded mode | |
config.threadsafe! | |
# Ensure eager loading during rake tasks | |
config.dependency_loading = true if $rails_rake_task | |
# Ensure lib is eagerly loaded too | |
config.eager_load_paths += Dir["#{config.root}/lib", "#{config.root}/lib/**/"] | |
end |
class Organization | |
include ActiveModel::Serialization | |
has_many :grants, as: :grants_made | |
has_many :grants, as: :grants_received | |
def grants_received_total | |
grants_received.map(&:amount).inject(0, :+) # or .sum if you're all into ActiveSupport | |
end | |
Tools | |
WebEngage | |
Qualaroo | |
Analytics | |
======== | |
Net Promoter Score - http://www.netpromotersystem.com/about/measuring-your-net-promoter-score.aspx |
Products.all.sort{|a,b| PriceNormalizer.on(a.price) <=> PriceNormalizer.on(b.price)} |