태그 : ruby 요약보기전체보기목록닫기
- Minesweeper 1 dimension version.(0)2009.06.16
- Find mines!!(5)2009.06.16
- We've got the first place in the grand prix of Fukuoka Ruby Award 2009!!(8)2009.02.23
- Simple type safe enum in Ruby(0)2008.11.17
- Ruby/Rails program for my family #3(0)2008.11.03
- Ruby/Rails program for my family #2(0)2008.10.28
- Ruby/Rails program for my family #1(4)2008.10.28
- play with Symbol#to_proc(0)2008.10.22
- Coding Dojo - Four Boxes by Ruby (Improved)(0)2008.09.18
- Coding Dojo - Amicable_Pair by Ruby(0)2008.09.11
1 2
- English Posting
- 2009/06/16 17:17
In last post, I used 2 dimension array. Below is 1 dimension version.
class Board
def initialize(rows, cols)
@rows, @cols = rows, cols
@blocks = [...
- English Posting
- 2009/06/16 15:51
Actually this quiz came from 'minesweeper' of programming challenges.
It's not difficult code, so skip explanation. And I have another idea that can reduce amount of memory usage when input data ...
We did it!! Our CLIK won the competition!! Thanks to our Climate Application Team(CAT in APCC21) - Dr. Saji, Kyong-Hee An, Young-Mi Min. They are pretty brilliant people, so I'm honored that I can w...
- English Posting
- 2008/11/17 14:07
module Kernel
def enum(*syms)
new_class = Class.new do
def initialize(name)
&...
- English Posting
- 2008/11/03 22:13
OK. Time to play with server side. I'll show all building step of building server side expect install rails and deploy it. You can find some nice documents on the internet. :-)
At first, I need ...
- English Posting
- 2008/10/28 17:17
Here is the montoring program. It is run by cron at every 5 minutes. It call target site's target page with specific query url (because, it is searching result page). Then it parse html through hpri...
- English Posting
- 2008/10/28 12:08
Since our son was born (8/2007), we often bought second hand toys for our son on the Internet. Sometimes we could get some items very easy with reasonable price. But sometimes it's so difficult, bec...
- English Posting
- 2008/10/22 22:53
If you are reasonable rails developer, you are so familiar with " &:symbol ". Have you thought how it work?Start with '&' operator. If you pass something with '&' to method, ruby think t...
- English Posting
- 2008/09/18 13:26
Four Boxes (I translated this quest from http://xper.org/wiki/seminar/FourBoxes)
Quest
There are four rectangles in plan and all their base of four rectangles are in parallel with the horizontal ...
- English Posting
- 2008/09/11 12:55
def sum_of_divisors(num)
divisors = [1]
(2..Math::sqrt(num)).each do |e|
if num % e == 0
divisors << e
&n...
1 2


최근 덧글