Skip to content

Instantly share code, notes, and snippets.

@hyuki
Created September 1, 2020 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyuki/5a914316c40e97cf2e0ac10b745b515a to your computer and use it in GitHub Desktop.
Save hyuki/5a914316c40e97cf2e0ac10b745b515a to your computer and use it in GitHub Desktop.
fitbit.rb - 運動するときの記録表示とBGM再生のためのスクリプト
#!/usr/bin/env ruby
utada = {
:url => 'https://www.youtube.com/watch?v=jmKRgqWGrWc',
:time => '2:45',
:title => 'Utada Hikaru「Beautiful World」 Directed by Tsurumaki Kazuya'
}
MUSIC = utada
puts <<"EOD"
## :fitbit: ステッパーで運動(#{MUSIC[:time]})。
BGM:[#{MUSIC[:title]}](#{MUSIC[:url]})
EOD
system %Q(open #{MUSIC[:url]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment