Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Gashuku Presen

1,040 views

Published on

  • Be the first to comment

  • Be the first to like this

Gashuku Presen

  1. 1. Contents • Ruby • • shell/vim • • (Rails)
  2. 2. Ruby
  3. 3. • • • ( ) • ( )
  4. 4. • FizzBuzz • • •
  5. 5.
  6. 6. “ruby”.length
  7. 7. puts “ruby”
  8. 8. • • • •
  9. 9. ( )
  10. 10. RSS
  11. 11. • RSS Really Simple Syndication XML
  12. 12. bot • RSS • twitter
  13. 13. • open-uri • rss • twitter
  14. 14. shell vim
  15. 15. Shell •CUI(bash/zsh) • GUI(X Windows System/ Windows/MacOSX
  16. 16. Terminal Terminal : shell Shell : Karnel Karnel : OS
  17. 17. prompt • “$” : • “#” :
  18. 18.
  19. 19. • Vi/Vim • Emacs
  20. 20. • Vi/Vim Emacs • Emacs • Vim Emacs • • Vim Vim + Screen + NERDTree
  21. 21. Vim + Screen + NERDTree • Vi/Vim Linux • Screen distribution • NERDTree
  22. 22. .vimrc • vim • ※ http://d.hatena.ne.jp/moridai/ 20090912/1252733205
  23. 23. " filetype plugin indent on syntax enable "key binding .vimrc .vimrc nnoremap<Space>. :<C-u>edit $MYVIMRC<Enter> nnoremap<Space>s. :<C-u>source $MYVIMRC<Enter> " case set backspace=eol,indent,start set ignorecase set hlsearch
  24. 24. $ sudo apt-get install screen
  25. 25. $ screen Ctrl + n / Ctrl + p Ctrl + c
  26. 26. • http://vimwiki.net/?scripts%2F18 • http://www.vim.org/scripts/script.php? script_id=1658 • Version 3.1.1 4.0.0
  27. 27. $ sudo apt-get install vim-full $ sudo gem install vim-ruby $ vim-ruby-install.rb #=> 1 ~/.vim/plugin
  28. 28. :NERDTree Ctrl + w, Arrow/w : move clockwise or counter- o : open, close Ctrl + C : make it top node u : go up one node
  29. 29. • http://www.web-20.net/2007/07/ post_56.html • http://d.hatena.ne.jp/h-yano/ 20081127/1227795949
  30. 30. • • • • •
  31. 31. DB • Ruby/C/C++/Objective-C/Java • MySQL/SQLite • Rails Ruby
  32. 32. • Subversion • Git
  33. 33. TimeLine •
  34. 34. • • ( /VPS/ ) • GoogleAppEngine/Amazon EC2,3
  35. 35. • •
  36. 36.
  37. 37. • • •
  38. 38. • Ruby on Rails • Merb • Waves ※ Ruby • Ramaze • Sinatra • Rack
  39. 39. MVC • Model • View • Control
  40. 40. <html> <body> <a href="http://www.daisukem.com/">My Web Site</a> </body> </html>
  41. 41. %html %body %a :href => http://www.daisukem.com/
  42. 42. Sinatra
  43. 43. [hello] app.rb [views] layout.haml index.haml hello.haml
  44. 44. http://d.hatena.ne.jp/moridai/20090910/1252514167 ※
  45. 45. Rails
  46. 46. $ mkdir rails_dir $cd rails_dir $rails myblog $cd myblog $script/generate scaffold Post name:string title:string content:text $rake db:migrate $script/server http://localhost:3000/posts ※app

×