<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takkan_m</author_name>
  <author_url>https://blog.hatena.ne.jp/takkan_m/</author_url>
  <blog_title>takkan_mのNo planな日常</blog_title>
  <blog_url>https://takkan-m.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>rubyneko - 知人のRubyコードを勝手に添削してみたを見て、個人的に気になったところを勝手に直してみた。かなり、個人的な好みなので、これがいいのかわからないけど。 require 'pp' #def functions def make_cluster(centroid, num_array) c = num_array.select{|v| (centroid[0] - v)**2 &lt; (centroid[1] - v)**2} [c,(num_array - c)] end def make_centroid(cluster) cluster.map do | c | c.siz…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakkan-m.hatenadiary.org%2Fentry%2F20071119%2F1195484938&quot; title=&quot;勝手に添削をさらに勝手に書き直す - takkan_mのNo planな日常&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-11-19 00:08:58</published>
  <title>勝手に添削をさらに勝手に書き直す</title>
  <type>rich</type>
  <url>https://takkan-m.hatenadiary.org/entry/20071119/1195484938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
