This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* document | |
* console画面からexcelにする方法 | |
* - textファイルに出力されたデータを貼り付ける | |
* - そのtextをcsvファイルにして保存する。この際に文字コードがUTF-8(BOM 付き)になっていることを確認する | |
* - excelでそのcsvファイルを開き、excelファイルに変換して保存する | |
*/ | |
// 定数 | |
const url = "https://www.amazon.co.jp/Echo-Studio-%E3%82%A8%E3%82%B3%E3%83%BC%E3%82%B9%E3%82%BF%E3%82%B8%E3%82%AA-Echo%E5%8F%B2%E4%B8%8A%E6%9C%80%E9%AB%98%E9%9F%B3%E8%B3%AA%E3%81%AE%E3%82%B9%E3%83%9E%E3%83%BC%E3%83%88%E3%82%B9%E3%83%94%E3%83%BC%E3%82%AB%E3%83%BC-with-Dolby-Atmos-and-Alexa-%E3%82%B0%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A3%E3%83%BC%E3%83%9B%E3%83%AF%E3%82%A4%E3%83%88/product-reviews/B09M6GW286/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
# ruby numerals.rb 1234 | |
# => twelve hundred thirty-four | |
class Num2Eng | |
# 数字と英語を結びつける | |
NUM_ENG = {'0' => 'zero', | |
'1' => 'one', | |
'2' => 'two', | |
'3' => 'three', |