2010-09-01から1ヶ月間の記事一覧

2010年09月24日のツイート

window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.paren…

数値を英語表記に変換するライブラリ

始まりは、Project Euler - Problem 17でした。 1 から 5 までの数字を英単語で書けば one, two, three, four, five であり、全部で 3 + 3 + 5 + 4 + 4 = 19 の文字が使われている。では 1 から 1000 (one thousand) までの数字をすべて英単語で書けば、全部…

Project Euler - Problem16 “Rubyをキメると気持ちイイ”

今回は英語でがんばりました。 2^(15) = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 2^(1000)?Problem 16 - Project Euler といってもほとんど数式ですが・・。*1 今回は図が出てこない、文字…

プロジェクト・オイラー再開 Problem15

数学ガールに影響されて、数学の問題をプログラミングで解こうサイト「Project Euler」を再開しました。 公式サイトhttp://projecteuler.net/ 和訳サイトhttp://odz.sakura.ne.jp/projecteuler/index.php?Project%20Euler 2 × 2 のマス目の左上からスタート…

Git入門を読んで基本を学び導入してみた

分散型バージョン管理システム「Git」を使い始めたので、基本事項をスライドにまとめました。 My add GitView more presentations from myokoym . ■補足 ディレクトリ単位の版管理だと、ファイルAを変更したときファイルBがどんな状態だったかわかる。ファイ…

「ブラウザ将棋盤」をリリースしました

app

RubyとjQueryを使ったWebアプリケーション「ブラウザ将棋盤」を作りました。http://shogiboard.heroku.com/ ■特徴(将棋的な) その名の通り、ただの「盤」です。 動きチェックなどはありません。 その分、自由に駒を動かすことができます。 アナログな盤が…