{"categories":["Ruby"],"version":"1.0","blog_title":"takkan_m\u306eNo plan\u306a\u65e5\u5e38","provider_url":"https://hatena.blog","type":"rich","author_url":"https://blog.hatena.ne.jp/takkan_m/","description":"rubyneko - \u77e5\u4eba\u306eRuby\u30b3\u30fc\u30c9\u3092\u52dd\u624b\u306b\u6dfb\u524a\u3057\u3066\u307f\u305f\u3092\u898b\u3066\u3001\u500b\u4eba\u7684\u306b\u6c17\u306b\u306a\u3063\u305f\u3068\u3053\u308d\u3092\u52dd\u624b\u306b\u76f4\u3057\u3066\u307f\u305f\u3002\u304b\u306a\u308a\u3001\u500b\u4eba\u7684\u306a\u597d\u307f\u306a\u306e\u3067\u3001\u3053\u308c\u304c\u3044\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u3051\u3069\u3002 require 'pp' #def functions def make_cluster(centroid, num_array) c = num_array.select{|v| (centroid[0] - v)**2 < (centroid[1] - v)**2} [c,(num_array - c)] end def make_centroid(cluster) cluster.map do | c | c.siz\u2026","height":"190","url":"https://takkan-m.hatenadiary.org/entry/20071119/1195484938","provider_name":"Hatena Blog","title":"\u52dd\u624b\u306b\u6dfb\u524a\u3092\u3055\u3089\u306b\u52dd\u624b\u306b\u66f8\u304d\u76f4\u3059","published":"2007-11-19 00:08:58","image_url":null,"blog_url":"https://takkan-m.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakkan-m.hatenadiary.org%2Fentry%2F20071119%2F1195484938\" title=\"\u52dd\u624b\u306b\u6dfb\u524a\u3092\u3055\u3089\u306b\u52dd\u624b\u306b\u66f8\u304d\u76f4\u3059 - takkan_m\u306eNo plan\u306a\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"takkan_m","width":"100%"}