<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>RubyPico</anon>
  </categories>
  <description>GitHub で API用の token を取得して下さい(参照)。それを以下のコードの「***」のところに入れます。あとは実行するだけ。コードの保存用にも使えますね。upload_to_gist.rb def main fname = Popup.input(&quot;ファイル名を入力して下さい&quot;) return unless fname unless File.exist?(fname) and File.file?(fname) puts &quot;ファイルが存在しないか、ディレクトリです&quot; return end file_content = File.open(fname) {|io| io.read…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F05%2F02%2F175944&quot; title=&quot;RubyPico でファイルを Gist にアップロードする - Camera Obscura&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>2017-05-02 17:59:44</published>
  <title>RubyPico でファイルを Gist にアップロードする</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2017/05/02/175944</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
