Hartwarming lightning talk in winter Sapporo

2,542 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,542
On SlideShare
0
From Embeds
0
Number of Embeds
109
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Hartwarming lightning talk in winter Sapporo

  1. 1. Heartwarming lightning talk in winter Sapporo a.k.a june29
  2. 2. http://www.flickr.com/photos/recompile_net/3736015552/ Taken by kei-s
  3. 3. Dosanko
  4. 4. Tested green
  5. 5. Ruby
  6. 6. Ruby Sapporo Kaigi
  7. 7. Sapporo Winter
  8. 8. Sapporo Winter Tera sweets
  9. 9. Tera sweets Cocoa http://www.flickr.com/photos/barl0w/3192038647/
  10. 10. Tera sweets Chat Cocoa
  11. 11. Ruby Chat Cocoa
  12. 12. RubyCocoa LimeChat for Mac http://limechat.net/mac/ja.html
  13. 13. LimeChat on github git clone git://github.com/psychs/limechat.git
  14. 14. limechat/ruby/view/log.rb class LogController < NSObject def print(line, unit, use_keyword=true) body, key = build_body(line, unit, use_keyword) unless @loaded @lines << [line, unit, use_keyword] return key end s = '' s << %|<span class="time">#{h(line.time)}</span>| if line.time s << %|<span class="place">#{h(line.place)}</span>| if line.place # ... ( )... end end
  15. 15. limechat/ruby/view/log.rb def write_line(html, attrs) # ...( )... doc = @view.mainFrame.DOMDocument return unless doc body = doc.body div = doc.createElement('div') div.setInnerHTML(html) attrs.each {|k,v| div.setAttribute__(k, v) } if attrs div.setAttribute__('id', "line#{@line_number}") body.appendChild(div) # ...( )... end
  16. 16. limechat/ruby/view/log.rb def initial_document # ...( )... doc = <<-EOM <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html class="#{body_class}" #{body_attrs}> <head> <title>LimeChat Log</title> <style>#{DEFAULT_CSS}</style> <style><!-- #{style} --></style> <style>#{override_style}</style> </head> <body class="#{body_class}" #{body_attrs}></body> </html> EOM end
  17. 17. LimeChat
  18. 18. LimeChat <html> <body> <div>message</div> <div>message</div> <div>message</div> <div>message</div> ... </body> </html>
  19. 19. LimeChat Ruby DOM HTML
  20. 20. http://localhost:4567/#{nick} User icon
  21. 21. http://localhost:4567/june29
  22. 22. http://www.flickr.com/photos/tmaedax/3844412763/
  23. 23. mrkn tmaeda noplans darashi snoozer05
  24. 24. Ruby Sapporo Winter Tera sweets Chat Kaigi Cocoa
  25. 25. Heartwarming lightning talk in winter Sapporo a.k.a june29

×