最近のTips
最近見つけたTipsを共有します。
<C-W>でタブが閉じれる
" 空白文字可視化
| # -*- encoding: utf-8 -*- | |
| require 'pp' | |
| class Edge | |
| attr_accessor :sides | |
| def initialize(a, b) | |
| @sides = [a, b] | |
| end | |
| def inspect |
| # hg-fast-exportインスコ | |
| git clone git://repo.or.cz/fast-export.git | |
| mkdir new_git_repo | |
| cd new_git_repo | |
| git init | |
| /path/to/hg-fast-export.sh -r /path/to/hg_repo | |
| git checkout HEAD | |
| git branch -f master 32a5fb24c... |
| UIImage *anImage = [UIImage imageNamed:@"sample.png"]; | |
| self.imageView.image = anImage; |
| - (IBAction)showAlert:(UIButton *)sender { | |
| UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"タイトル" | |
| message:@"本文" | |
| delegate:self | |
| cancelButtonTitle:@"キャンセル" | |
| otherButtonTitles:@"OK", nil]; | |
| [alertView show]; | |
| NSLog(@"%@", @"アラート押された"); |
| NeoBundle 'felixge/vim-nodejs-errorformat' |
| require 'webio' | |
| webio = WebIO.new('0.0.0.0:9999') | |
| while name=webio.gets | |
| webio.puts name | |
| end |
| mysql:bind '^U' vi-kill-line-prev | |
| mysql:bind '^W' ed-delete-prev-word |