Newer
Older
Ruby / index.cgi
@SATO Shigeaki SATO Shigeaki on 9 Aug 2022 1 KB 2022-08-09 14:17:32
<!DOCTYPE html>
<html>
<!-- Default style for pretty-print of text files -->
<head><title>birthstone3.rb</title>
<style type="text/css">
pre {margin-left: 6ex;}
pre span {counter-increment: linenum; text-align: right; position: relative;}
pre span:before {
    position: absolute; right: 0px;
    background: #ddd; text-align: right; padding: 0 0.2ex;
    width: 5.5ex; margin-right: 0.5ex;
    content: counter(linenum) ":";
}
</style>
</head>
<body>
<p>[[ <a href="?showattc+article_m+160+raw">RAW TEXT</a>(DOWNLOAD here) ]]</p>
<pre lang="en">
<span></span>#!/usr/koeki/env ruby
<span></span># -*- coding: utf-8 -*-
<span></span>
<span></span>month =   &#040;0:1月 1:2月 2:3月 3:4月 4:5月 5:6月 6:7月 7:8月 9:10月 10:11月 11:12月 )
<span></span>
<span></span>stone =   &#040;ガーネット アメジスト アクアマリン ダイアモンド エメラルド パール ルビー ペリドット サファイア トルマリン トパーズ タンザナイト)
<span></span>
<span></span>puts 
<span></span>puts&quot;何月生まれですか?&quot;
<span></span>a = 
<span></span>     &#040;&quot;あなたの誕生石は%s!\n&quot;,       )

</pre>
</body>
</html>