http://hiroshimarb.github.io/blog/2013/11/02/hiroshimarb-35/
広島Ruby勉強会 #035 の発表資料。
いつもいつも内容が難しいと言われるので、入門者向けの話に挑戦してみた。
プログラミングをする動機をみつめなおしてみた。
version up していきたいので ver 0.1
This document contains Apache proxy configuration settings that forward requests from augm.mac-ug.net to augmwp.mac-ug.net, excluding specific paths. It also contains HTML markup for a registration form with a header and field div.
http://hiroshimarb.github.io/blog/2013/11/02/hiroshimarb-35/
広島Ruby勉強会 #035 の発表資料。
いつもいつも内容が難しいと言われるので、入門者向けの話に挑戦してみた。
プログラミングをする動機をみつめなおしてみた。
version up していきたいので ver 0.1
This document contains Apache proxy configuration settings that forward requests from augm.mac-ug.net to augmwp.mac-ug.net, excluding specific paths. It also contains HTML markup for a registration form with a header and field div.
19. @fiber ||= Fiber.new do
loop do
@x = 5
@y = 5
10.times do
@x += 1
Fiber.yield
end
10.times do
@y += 1
Fiber.yield
end
10.times do
@x -= 1
Fiber.yield
end
10.times do
@y -= 1
Fiber.yield
end
end
end
13年2月2日土曜日
20. 10.times do
down
end
10.times do
right
end
10.times do
up
end
10.times do
left
end
13年2月2日土曜日
21. @fiber ||= Fiber.new do
loop do
@x = 5
@y = 5
10.times do
@x += 1
Fiber.yield
end
10.times do
@y += 1
Fiber.yield
end
10.times do
@x -= 1
Fiber.yield
end
10.times do
@y -= 1
Fiber.yield
end
end
end
13年2月2日土曜日