- The sunrise on New Year's Day.
- Rough sketch.
- Get pregnancy.
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
Cmd-Z -> Undo, Cmd-Shift-Z -> Redo in zsh. | |
1. bindkey in zsh | |
2. remap in keyremap4macbook |
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
// typedef void (^TQAPIHTTPRequestSuccessHandler)(AFHTTPRequestOperation *operation, id responseObject); | |
// typedef void (^TQAPIHTTPRequestFailureHandler)(AFHTTPRequestOperation *operation, NSError *error); | |
NSString *path = <#path#>; | |
NSDictionary *params = <#params#>; | |
// ↓ OR define custom type and use it. e.g. TQAPIHTTPRequestSuccessHandler successHandler = ... | |
void (^successHandler)(AFHTTPRequestOperation *operation, id responseObject) = ^(AFHTTPRequestOperation *operation, id responseObject) { | |
if (block) { block(responseObject, nil); } | |
}; |
- 1日目 goで作ったコマンドのヘルプの出力を変える
- 2日目 goで特定のエラーに対して別々にハンドリングする
- 3日目 bundle install --path=PATH で入れたgemを認識してほしい、Intellij
- 4日目 iOS remindersとかcalendarみたいな日付選択
- 5日目 homebrewで入れたgoの$GOROOT
- 6日目 plistのシンタックスチェック
- 7日目 標準出力がパイプされてる時でもcursesが動くようにする
- 8日目 $GOROOT/src/race.bashとかのインデント
- 9日目 duplicate symbol OBJC_IVAR$_TQHOGEHOGE._name
- 10日目 https://github.com/user.keys をとってくるgemつくった
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 'curses' | |
def ensure_stdout_isatty | |
isatty = STDOUT.isatty | |
unless isatty | |
stdout_old = STDOUT.dup | |
STDOUT.reopen('/dev/tty') | |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"reflect" | |
) | |
var SimpleValidationError = errors.New("Validation error") |
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 ( | |
"flag" | |
"fmt" | |
"os" | |
) | |
func usage() { | |
banner := `toqoz is useless tool |
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
var favicon = { | |
retryCount: 0, | |
retryLimit: 10, | |
change: function(url, cond) { | |
if (cond()) { | |
if (this.node().href != url) { | |
this.node().href = url; | |
// 後で書き換えられることもあるので適当にリトライする | |
setTimeout(function() { |
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
# Fork from http://qiita.com/ayakix/items/3f05da9541b8e130e39f | |
##### Uncrustify config | |
### Preprocessor | |
## http://qiita.com/items/dd7c5ffdff27451dae16 | |
# #if、#ifdef、#ifndef〜#else〜#endifブロック内のプロプロセッサをインデントするかどうか。{ ignore, add, remove, force } | |
pp_indent = add | |
# ソースコードのインデントレベルに合わせてインデントするかどうか。{ true, false } | |
pp_indent_at_level = 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
package migrations | |
import ( | |
"github.com/ToQoz/scheman" | |
) | |
type createPost struct {} | |
func (c *createPost) up(migrator *scheman.Migrator) { | |
migrator.CreateTable("posts", func(table *scheman.Table) { |