LL Golf Hole 1 - tinyurl.comを使ってURLを短縮する
Posted feedbacks - Perl
RSSでは配信されてないみたいですけどこれもお題ですかね?
なんか、1-linerで済んじゃったんですけど...
そういうことじゃないのかなぁ...
perl -MLWP::Simple -E 'say get(q{http://tinyurl.com/api-create.php?url=http://ll.jus.or.jp/2008/info/xgihyo})'
もっと短くなりました。 :D perl -MLWP::Simple -E 'say get "http://easyurl.jp/edz"'
see: EasyURL
WWW::Shortenモジュールを利用する。
see: WWW::Shorten::TinyURL - Perl interface to tinyurl.com
1 | perl -MWWW::Shorten::TinyURL -e 'print makeashorterlink("http://ll.jus.or.jp/2008/info/xgihyo")'
|
WWW::Shortenモジュールを利用する。
see: WWW::Shorten::TinyURL - Perl interface to tinyurl.com
1 | perl -MWWW::Shorten::TinyURL -e 'print makeashorterlink "http://ll.jus.or.jp/2008/info/xgihyo"'
|




takano32
#6771()
[
Ruby
]
Rating-5/15=-0.33
tinyurl.com( http://tinyurl.com/ )のサービスを利用し、 http://ll.jus.or.jp/2008/info/xgihyo というURLを短縮しなさい。tinyurl.comのalias機能は使わないものとする。 なお、参考までに短縮したURLは http://tinyurl.com/5mngx8 となる。
余力のあるものはこのプログラムを短くしてみたり、短くしてみたり、短くしてみよ。
※LL Future実行委員の高野光弘です。この出題は LL Future公式の出題であり、優れたものについてはLL Golfのセッションでご紹介させていただくかもしれません。ご理解の上、ご投稿ください。また、LL Futureのチケットは現在も発売中です。よろしければ、メインイベントの方にもぜひご参加ください。
see: tinyurl.comでURLを短縮するRubyスクリプト
Rating-5/15=-0.33-0+
[ reply ]