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
include Locomotive::Routing::SiteDispatcher | |
include Locomotive::Render | |
include Locomotive::ActionController::LocaleHelpers |
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
--- | |
title: Content type templates | |
slug: content_type_template | |
listed: false | |
published: true | |
position: 100 | |
content_type: news | |
--- | |
{% extends parent %} | |
{% block main %} |
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
= f.input :published, as: :'Locomotive::Toggle', input_html: { class: 'simple-toggle' } | |
= f.input :require_login, as: :'Locomotive::Toggle', input_html: { class: 'simple-toggle' } #この行を追加 | |
= f.input :listed, as: :'Locomotive::Toggle', input_html: { class: 'simple-toggle' } |
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
heroku config:add HEROKU_API_KEY=<YOUR HEROKU API KEY> | |
heroku config:add HEROKU_APP_NAME=<YOUR APP NAME> |
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
// | |
// GRViewController.m | |
// MapBoxSample | |
// | |
// Created by Haruyuki Seki on 12/9/13. | |
// Copyright (c) 2013 Georepublic. All rights reserved. | |
// | |
#import "GRViewController.h" | |
#import <MapBox/MapBox.h> |
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
package 'curl' | |
execute "Opscode Chef Client Installer for Ubuntu" do | |
command 'curl -L https://www.opscode.com/chef/install.sh | sudo bash' | |
not_if '/usr/bin/chef-client --version | /bin/grep "Chef: 11."' | |
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
@implementation Singleton | |
static NSMutableDictionary *_instances; | |
+ (id) sharedInstance { | |
__block Singleton *obj; | |
@synchronized(self) { | |
if ([_instances objectForKey:NSStringFromClass(self)] == nil) { | |
obj = [[self alloc] initSharedInstance]; | |
} | |
} |
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
SPEC_BEGIN(PropertyUtil) | |
describe(@"SimpleRemoteObject", ^{ | |
context(@"read timeout", ^{ | |
beforeAll(^{ | |
[SRRemoteConfig defaultConfig].baseurl = @"http://localhost:2000/"; | |
[SRRemoteConfig defaultConfig].timeout = 2; | |
}); | |
it(@"should timeout with specified second", ^{ |
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 <SimpleRemoteObject/SRSimpleRemoteObject.h> | |
@interface User : SRSimpleRemoteObject | |
@property(nonatomic,retain) NSString *name; | |
@property(nonatomic,retain) NSString *email; | |
@property(nonatomic) int age; | |
@end |