タグ

2007年5月11日のブックマーク (3件)

  • Just another Ruby porter, 2007-5-a

    ■ [Ruby] IronRuby Specifically, Scott Guthrie, general manager in Microsoft's Server and Tools division, announced IronRuby, a version of the Ruby language for .Net. Over the past few years, Microsoft has hired experts in dynamic languages, including Python and JavaScript, to expand support for these languages. ■ [twitter] mpd twitter あらかじめ Ruby MPDとgemtwitterをインストールしておく。 #! /usr/local/bin/ruby r

    yshl
    yshl 2007/05/11
  • FizzBuzz問題

    1から100までの整数をプリントするプログラムを書け。ただし3の倍数のときは数の代わりに「Fizz」と、5の倍数のときは「Buzz」とプリントし、3と5両方の倍数の場合には「FizzBuzz」とプリントすること。 ただし、剰余(Rubyでいう % 演算子や modulo)を使うな。

    FizzBuzz問題
    yshl
    yshl 2007/05/11
    seq 100 | factor | sed -e 's/.*:\( .*\)* 3 5\( .*\)*$/FizzBuzz/;s/.*:\( .*\)* 3\( .*\)*$/Fizz/;s/.*:\( .*\)* 5\( .*\)*$/Buzz/;s/\(.*\):.*/\1/' を剰余・ループ・条件分岐無しだと言い張ってみる
  • Ghoti - Wikipedia

    Ghoti is a creative respelling of the word fish, used to illustrate irregularities in English spelling and pronunciation. The word is intended to be pronounced in the same way as fish (/fɪʃ/), using these sounds: gh, pronounced /f/ as in enough /ɪˈnʌf/ or tough /tʌf/; o, pronounced /ɪ/ as in women /ˈwɪmɪn/; ti, pronounced /ʃ/ as in nation /ˈneɪʃən/ or motion /ˈmoʊʃən/. The key to the phenomenon is

    yshl
    yshl 2007/05/11
    fucking は発音しない単語であった