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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Your other code | |
tabBarController.tabBar.maximumTabWidth = 64.0f; | |
tabBarController.tabBar.backgroundColor = [UIColor whiteColor]; | |
tabBarController.tabBar.backgroundImage = [UIImage imageNamed:@"tabbar_background"]; | |
tabBarController.tabBar.layoutStrategy = JBTabBarLayoutStrategyFill; | |
// Your other code | |
} |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
// your other code | |
self.tabBarController = [[JBTabBarController alloc] init]; | |
NSMutableArray* controllers = [NSMutableArray arrayWithObject:[[UINavigationController alloc] initWithRootViewController:[[NewsViewController alloc] init]]]; | |
[controllers addObject:[[UINavigationController alloc] initWithRootViewController:[[FavoritesViewController alloc] init]]]; | |
[controllers addObject:[[UINavigationController alloc] initWithRootViewController:[[AboutViewController alloc] init]]]; |
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
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.preference.PreferenceManager; | |
import android.util.Log; | |
import com.apphoshies.core.services.DeviceToken; | |
import com.google.android.gcm.GCMBaseIntentService; |
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
source "http://rubygems.org" | |
gem 'httparty' | |
gem 'json' | |
group :development do | |
gem "shoulda", ">= 0" | |
gem "bundler", "~> 1.0.0" | |
gem "jeweler", "~> 1.6.4" | |
gem "rcov", ">= 0" | |
end |
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/sh | |
#### Configuration #### | |
boost_version="1.48.0" | |
libev_version="4.04" | |
v8_version="3.7.0" | |
####################### | |
rm avocadodb | |
rm -rf build |
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
private static final String APP_VERSION = "1.0"; // Your app version | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); | |
ConfigurationFactory.newConfiguration(sharedPreferences, |
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
#import "AppHoshies.h" | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
[APHConfigurationFactory configuration]; | |
[APHAppTracking startSession]; | |
// your code | |
return YES; |
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
#!/usr/bin/env ruby | |
# Script to synchronize git repository structures between machines. | |
require "yaml" | |
# git-repo.yml example: | |
# | |
# workspace: | |
# versioned: |
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
############## commands ################# | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} | |
run "rm .gitignore" | |
file '.gitignore', <<-ENDEND | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml |