This file contains hidden or 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
| //////// | |
| class Human{ | |
| private String name; | |
| private int age; | |
| private String birth; | |
| private int weigth; | |
| private int height; | |
| private String[] nisai; | |
| private String status; | |
| private float money; |
This file contains hidden or 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
| class Human{ | |
| private String name; | |
| private int age; | |
| private String birth; | |
| private int weigth; | |
| private int height; | |
| private String[] nisai; | |
| private String status; | |
| private float money; | |
| private house home; |
This file contains hidden or 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
| NSString *bundlePath = [[NSBundle mainBundle] bundlePath]; | |
| NSString *resourcePath = [bundlePath stringByAppendingPathComponent:@"resource.plist"]; | |
| sharedInstance.objectCompositionDic = [NSDictionary dictionaryWithContentsOfFile:resourcePath]; |
This file contains hidden or 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 "HomeTitleView.h" | |
| #import "UIFactory.h" | |
| @implementation HomeTitleView | |
| @synthesize ticketLabel; | |
| @synthesize monthLabel; | |
| - (id)initWithFrame:(CGRect)frame | |
| { | |
| self = [super initWithFrame:frame]; |
This file contains hidden or 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
| @implementation NonAnimatedSegue | |
| - (id) initWithIdentifier:(NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination{ | |
| self = [super initWithIdentifier:identifier source:source destination:destination]; | |
| if(self){ | |
| } | |
| return self; | |
| } |
This file contains hidden or 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
| public class Mobile{ | |
| private Keyboard keyboard; | |
| private Screen screen; | |
| private Stack callStack; | |
| private State phoneState; | |
| private String currentNumber; | |
| enum State{ | |
| on, | |
| off, |
This file contains hidden or 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
| public class calculator(){ | |
| private Keyboard keyboard; | |
| private Screen screen; | |
| private Stack operant; | |
| private Stack operator; | |
| private String showValue; | |
| private State calState; | |
| enum State{ | |
| on, |
This file contains hidden or 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
| # collect values from a particular field | |
| @users.collect(&:email) | |
| # collect values from a particular method | |
| @users.collect(&method(:user_preferences_url)) |
This file contains hidden or 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
| namespace :tasks do | |
| namespace :create do | |
| desc "Create all survey templates" | |
| task :all => [:task1, :task2, :task3] | |
| desc "desc1" | |
| task :task1 => :environment do | |
| end |
This file contains hidden or 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
| userPreference = [NSUserDefaults standardUserDefaults]; | |
| // Check for a value of a specific key | |
| if([userPreference objectForKey:@"login_info"]){ | |
| NSString *userInfo = [userPreference objectForKey:@"login_info"]; | |
| NSArray *tokens = [userInfo componentsSeparatedByString:@"/"]; | |
| [self.telephoneTextField setText:[tokens objectAtIndex:0]]; | |
| [self.passwordTextField setText:[tokens objectAtIndex:1]]; | |
| [self login:self]; | |
| } |