Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Yuki Nakata chikuwait

🎯
Focusing
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.