Think In Geek

In geek we trust

June, 2012

A Ruby implementation of the FizzBuzz test using the Enumerator class

Some days ago I learnt about The FizzBuzz Test and did a simple implementation in Ruby. The FizzBuzz test is a simple algorithm that is supposed to do the following: For each number from 1 to 100: If the number is divisible by 3, print “Fizz” If the number is divisible by 5, print “Buzz” […]

, , ,

Push git tags to a remote repository

If you ever wondered how to push the tags you set locally to a remote repository in git, you can do it with the following simple command: git push –tagsgit push –tags