$ brew update
$ brew upgrade rbenv
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
companies = [{"id":1,"ticker":"AAPL","name":"Apple Inc"}, | |
{"id":2,"ticker":"ABC","name":"Amerisourcebergen Corp"}, | |
{"id":3,"ticker":"ABT","name":"Abbott Labs"}, | |
{"id":4,"ticker":"ACE","name":"Ace Ltd"}, | |
{"id":5,"ticker":"ADBE","name":"Adobe Sys Inc"}] | |
_.templateSettings = interpolate :/\{\{(.+?)\}\}/g | |
$ -> |
"---------------------------------------- | |
" vim-ref | |
"---------------------------------------- | |
"{{{ | |
let g:ref_use_vimproc = 1 | |
let g:ref_open = 'split' | |
let g:ref_cache_dir = expand('~/.Trash') | |
" PATHを設定する | |
let g:ref_refe_cmd = expand('~/.vim/ref/ruby-ref1.9.2/refe-1_9_2') |
"------------------------------------ | |
" vim-rails.vim | |
"------------------------------------ | |
""{{{ | |
"有効化 | |
let g:rails_some_option = 1 | |
let g:rails_level = 4 | |
let g:rails_syntax = 1 | |
let g:rails_statusline = 1 | |
let g:rails_url='http://localhost:3000' |
/* | |
* HTML5 ✰ Boilerplate | |
* | |
* What follows is the result of much research on cross-browser styling. | |
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, | |
* Kroc Camen, and the H5BP dev community and team. | |
* | |
* Detailed information about this CSS: h5bp.com/css | |
* | |
* ==|== normalize ========================================================== |
!!! 5 | |
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
/[if lt IE 7] <html class="no-js ie6 oldie" lang="en"> | |
/[if IE 7] <html class="no-js ie7 oldie" lang="en"> | |
/[if IE 8] <html class="no-js ie8 oldie" lang="en"> | |
-# Consider adding a manifest.appcache: h5bp.com/d/Offline | |
/[if gt IE 8] <!--> <html class="no-js" lang="en"> <!-- | |
%head | |
%meta{:charset => 'utf-8'} |
" こういうHTMLがあったときに | |
" <div id="hoge" class="fuga"> | |
" ... | |
" </div> | |
" | |
" 実行するとこうなる | |
" <div id="hoge" class="fuga"> | |
" ... | |
" <!-- /div#hoge.fuga --></div> |
# 参考にしたサイト: http://mono-comp.com/programming/rails-web-appli-register/ | |
# URLのコードとほぼ100%同じ | |
# $ rails g model user name:string access_token:binary access_token_secret:binary salt:string | |
# または | |
# $ rails g model user して、 db/migration 下の ***_create_user.rb に | |
# t.string :name | |
# t.binary :access_token | |
# t.binary :access_token_secret | |
# t.string :salt |