Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Yuki Nakata chikuwait

🎯
Focusing
Block or report user

Report or block chikuwait

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View buildconfig
MRuby::CrossBuild.new('BitVisor') do |conf|
toolchain :gcc
conf.cc.include_paths << "include/kernel"
conf.cc.flags << "-mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-stack-protector"
conf.cc.defines << %w(DISABLE_STDIO)
conf.cc.defines << %w(DISABLE_FLOAT)
conf.cc.defines << %w(MRB_INT64)
conf.bins = []
end
View fizzbuzz.rb
1.upto(100){|n| n%3 == 0 && r ='FIZZ';puts n%5 ==0 ?"#{r}Buzz":r||n}
You can’t perform that action at this time.