Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
############################################################
# Recursively peruses a directory and converts MKV files
# to MP4 for streaming to Xbox360.
#
# @author: Ticean Bennett
# @url: http://ticean.com
# @see: http://trac.handbrake.fr/wiki/CLIGuide#options
#
# @param file The complete file path.
@wilkinsbrian
wilkinsbrian / fizzbuzz.rb
Created July 13, 2014 19:59
Ruby FizzBuzz with If Statement
def fizzbuzz(n)
if (n % 3 == 0)
puts "Fizz"
end
if (n % 5 == 0)
puts "Buzz"
end
if !((n % 3 == 0) || (n % 5 == 0))
puts n
end