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 "HomeTitleView.h" | |
#import "UIFactory.h" | |
@implementation HomeTitleView | |
@synthesize ticketLabel; | |
@synthesize monthLabel; | |
- (id)initWithFrame:(CGRect)frame | |
{ | |
self = [super initWithFrame:frame]; |
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
NSString *bundlePath = [[NSBundle mainBundle] bundlePath]; | |
NSString *resourcePath = [bundlePath stringByAppendingPathComponent:@"resource.plist"]; | |
sharedInstance.objectCompositionDic = [NSDictionary dictionaryWithContentsOfFile:resourcePath]; |
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
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 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 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
require 'hirb' | |
require 'pry' | |
ActiveSupport.on_load :active_record do | |
Hirb::Formatter.dynamic_config['ActiveRecord::Base'] | |
Hirb.enable | |
old_print = Pry.config.print | |
Pry.config.print = proc do |output, value| | |
Hirb::View.view_or_page_output(value) || old_print.call(output, value) | |
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
if defined?(Rails) && Rails.env | |
extend Rails::ConsoleMethods | |
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
#import "RoundedTextField.h" | |
@implementation RoundedTextField | |
- (id)initWithFrame:(CGRect)frame | |
{ | |
self = [super initWithFrame:frame]; | |
if (self) { | |
} | |
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
def appropriate_visibilities | |
unless (self.visibilities - self.user.roles).empty? | |
errors.add(:visibilities, "invalid visibilities assignment") | |
end | |
# Below is a bad one, change the visibilities silently. this is not a right behavior of validation | |
# self[:visibilities] = BIT_MASKER.mask( | |
# # This is assuming that self.visibilities, at least, must have :regular as its member | |
# # or we will end up getting visibilities = []. | |
# # See the comment on visibilities() above |
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 <Foundation/Foundation.h> | |
@interface StringHelper : NSObject | |
+ (NSString*)costString:(NSString*)source; | |
+ (NSString*)dateString:(NSString*)source; | |
+ (NSString*)dateString:(NSString*)source withTime:(BOOL)enableTime; | |
+ (NSString*)imagePathStringWithSource:(NSString*) source; | |
+ (NSString*)UTF8DecodedString:(NSString*)source; | |
+ (NSString*)UTF8EncodedString:(NSString*)source; |
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
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
export CLICOLOR=1 | |
export LSCOLORS=cxfxcxdxbxegedabagacad | |
export GREP_OPTIONS='--color=auto' | |
source "`brew --prefix`/etc/grc.bashrc" |