- Distro: Ubuntu 16.04
-
open terminal window and paste the followig code:
sudo add-apt-repository ppa:webupd8team/atom -
then update system package index and install the package
| class Array | |
| def sample!(n = nil) | |
| raise TypeError.new('no implicit conversion of String into Integer') unless n.class == Integer | |
| new_array = self.clone | |
| random_sample = n.nil? ? sample : sample(n) | |
| new_array -= random_sample.class == Array ? random_sample : [random_sample] | |
| replace(new_array) | |
| random_sample | |
| end | |
| end |
| // Instalar extenciones: | |
| // - endwise | |
| // - Ruby | |
| // - Ruby Solargraph | |
| // - VSCode Ruby | |
| // - https://github.com/ruby-debug/ruby-debug-ide | |
| // - vscode-dbml | |
| // - Live Share (microsoft account o github) | |
| // - Gem lens | |
| // - GitLens |