{"description":"2\u6c34\u6e96\u7cfb\u76f4\u884c\u8868\u3092\u4f5c\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8 require 'terminal-table' require 'csv' def dup_row(rows) new_rows = [] rows.each do |row| 2.times do new_rows << row.dup end end new_rows end def add_cols(rows) c = [0,1].cycle new_rows = rows.dup new_rows.each do |row| d = c.next add_row = [] row.each do |v| add_row << (v ^ d) end\u2026","type":"rich","height":"190","author_url":"https://blog.hatena.ne.jp/bamch0h/","title":" 2\u6c34\u6e96\u7cfb\u76f4\u884c\u8868\u306e\u4f5c\u6210","provider_name":"Hatena Blog","url":"https://bamch0h.hatenablog.com/entry/2021/09/12/231220","categories":["Ruby"],"blog_url":"https://bamch0h.hatenablog.com/","version":"1.0","image_url":null,"width":"100%","published":"2021-09-12 23:12:20","author_name":"bamch0h","blog_title":"bamchoh\u2019s diary","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbamch0h.hatenablog.com%2Fentry%2F2021%2F09%2F12%2F231220\" title=\" 2\u6c34\u6e96\u7cfb\u76f4\u884c\u8868\u306e\u4f5c\u6210 - bamchoh\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}