Skip to content

Instantly share code, notes, and snippets.

View ashleybot's full-sized avatar

Ashley Wilson ashleybot

  • University of Kentucky @UK-SBCoA
  • Lexington, KY, USA
View GitHub Profile
@judofyr
judofyr / fizzbuzz.rb
Created August 1, 2012 21:37 — forked from JEG2/fizzbuzz.rb
Writing FizzBuzz with flip-flops
a=b=c=(1..100).each do |num|
print num, ?\r,
("Fizz" unless (a = !a) .. (a = !a)),
("Buzz" unless (b = !b) ... !((c = !c) .. (c = !c))),
?\n
end