View debug.txt
1 2 3 4 5 6 7 8 9 10
Bringing machine 'default' up with 'virtualbox' provider...
[default] VirtualBox VM is already running.
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise32'...
 
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
View git-wars.md

Git Wars: GitHub vs Bitbucket

Introduction

Now, you might think the answer I'm going to give you is already obvious because I'm using GiHub right now, but it's not. Both GitHub and Bitbucket offer great Git services, but each has its own features and pricing plans. In the following... thing, I'm going to compare the two and then offer a final solution that should work for most people.

TL;DR: Both. Use GitHub for open source and public repos (you'll spend most of your time here) and Bitbucket for private repos. But, sign up for GitHub first, then import account into Bitbucket. Also, check comments for updates. P.S. I personally prefer GitHub.

Interface and Functionality

View superman.rb
1 2 3 4 5 6 7 8 9 10
class PresumtiousCrowd
def initialize(it = "frog")
@it = it
if @it != "bird"
if @it != "plane"
puts "IT'S SUPERMAN!"
else
puts "That's boring..."
end
else
View loops.rb
1 2 3 4 5 6 7 8 9 10
# Loop
i = 0
loop do
i+=1
puts "To infinity and beyond! (#{i})"
end
 
# While
i = 0
while true do
View OS.rb
1 2 3 4 5 6 7 8 9 10
module OS
def OS.windows?
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end
 
def OS.mac?
(/darwin/ =~ RUBY_PLATFORM) != nil
end
 
def OS.unix?
Something went wrong with that request. Please try again.