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
brew install pdftohtml |
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
# 競合するgdbがないなら必要ない | |
# 普通にbrewで入れたらgdbコマンドが使える | |
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb' |
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 main | |
import ( | |
"fmt" | |
"github.com/codegangsta/martini" | |
"os/exec" | |
) | |
func main() { | |
m := martini.Classic() |
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.date_select_or_confirm :birth_date, {}, {class: "date"} | |
<select class="date" id="user_birth_date_1i" name="user[birth_date(1i)]"> | |
<select class="date" id="user_birth_date_2i" name="user[birth_date(2i)]"> | |
<select class="date" id="user_birth_date_3i" name="user[birth_date(3i)]"> | |
※<option>は省略してます。 |
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
// 回転時に呼ばれる | |
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { | |
NSString *className = NSStringFromClass([window class]); | |
// ネストしているViewがMPFullscreenWindowやMPInlineVideoFullscreenViewControllerである場合があるので確認する | |
if ([((UITabBarController *)window.rootViewController) respondsToSelector:@selector(presentedViewController)]) { | |
className = NSStringFromClass([((UITabBarController *)window.rootViewController).presentedViewController class]); | |
} | |
// MP*FullscreenWindowなどがYouTube再生時のViewの名称なので |
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 "Social.h" | |
・・・ | |
[Social facebookShare:self]; | |
or | |
[Social twitterShare:self]; | |
or | |
[Social lineShare: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
+set :pty, true |
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
+ gem 'hipcaht' |
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
location = / { | |
+ if ($http_x_forwarded_proto = "https") { | |
+ rewrite ^(.*) http://$server_name$1 | |
+ break; | |
+ } | |
... | |
} | |
location / { | |
+ if ($http_x_forwarded_proto != "https") { |
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
+gem 'dalli' |