既に上げられていたので、出遅れた。
http://delta114514.hatenablog.jp/entry/2018/03/15/014555
そして上記の記事は大変まとまっているため、私の記事は不要だと思う。以下、駄文。
既に上げられていたので、出遅れた。
http://delta114514.hatenablog.jp/entry/2018/03/15/014555
そして上記の記事は大変まとまっているため、私の記事は不要だと思う。以下、駄文。
<html><head><script src="//api.songle.jp/v2/api.js"></script><script> | |
function onSongleWidgetAPIReady(SongleWidget) { | |
// 音楽プレーヤーを表示する | |
var player = new SongleWidget.Player({ | |
accessToken: '00000090-KtkWYyy' // アクセストークン | |
, secretToken: '2ixLaohRmaKrjS1qSHhfcMeVR27UTg8C' // シークレットトークン | |
}); | |
player.useMedia( | |
'https://youtube.com/watch?v=xOKplMgHxxA', |
puts readlines.map(&:to_i).sum |
puts gets.to_i.to_s(2) | |
=begin | |
7 | |
が | |
111 | |
=end |
x = readlines.map{|line| line.chomp.split(/\s/).map(&:to_i)} | |
puts x.map{|row| row.map{|i| i+1} }.map{|row| row.join(" ")}.join("\n") | |
=begin | |
1 1 | |
1 1 | |
が | |
2 2 | |
2 2 | |
=end |
$git add -A | |
$git commit -m "Update application" | |
$git push heroku master | |
$heroku run rails db:migrate |
case (foo <=> bar) <=> 0 | |
when 0 | |
#等しい時 | |
when 1 | |
# fooのほうが大きい時 | |
else | |
# fooのほうが小さい時 | |
end |
puts ((6<<29)%3) | |
#=>0 | |
puts Array.new.size | |
#=>0 | |
puts [].sum | |
#=>0 |
a=[1,2].each_with_index.max[1]+1 | |
#=>2 | |
a=[1,2].each_with_index.min[1]+1 | |
=>1 |
puts [*?a..?z].size | |
=>26 |