This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku help | |
=== General Commands | |
help # show this usage | |
version # show the gem version | |
login # log in with your heroku credentials | |
logout # clear local authentication credentials | |
list # list your apps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p136 :001 > ['tatiana','ana lucia', 'sergio ney', 'marco aurelio' ] - ['tatiana','cantidio', 'marco aurelio', 'renata' ] | |
=> ["ana lucia", "sergio ney"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p1 = File.open('people1.txt').readlines | |
p2 = File.open('people2.txt').readlines | |
puts p1 - p2 | |
=begin | |
ruby-1.9.2-p136 :006 > f1 = File.open('people1.txt').readlines | |
=> ["tatiana\n", "ana lucia\n", "sergio ney \n", "marco aurelio \n"] | |
ruby-1.9.2-p136 :007 > f2 = File.open('people2.txt').readlines | |
=> ["tatiana\n", "cantido \n", "marco aurelio\n", "renata"] |
NewerOlder