Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nyaplotの紹介@U-22プロコン

domitry
October 06, 2014

 Nyaplotの紹介@U-22プロコン

domitry

October 06, 2014
Tweet

More Decks by domitry

Other Decks in Technology

Transcript

  1. Erbテンプレートへ notebookで書いたコードに数⾏の追加で実現 <title>Nyaplot</title> <script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.min.js"></script> <script> </script> <form method="post" action="/">

    <input type="submit" value="submit"> </form> <%= Nyaplot.generate_init_code %> <%= @frame.generate_body %> <%= str=""; @p.each{|k, v| str += "#{k}: <input type="\"text\"" name="\"#{k}\"" value="\"#{v}\""><br>"