Skip to content

Instantly share code, notes, and snippets.

View calrrox's full-sized avatar
🏠
Remote office

Carlos Torrealba calrrox

🏠
Remote office
View GitHub Profile
@calrrox
calrrox / atom-rais-js-sutff.md
Last active May 31, 2017 11:52
RoR IDE with ATOM

Prerequisite:

  • Distro: Ubuntu 16.04

Install via ppa stable version:

  • open terminal window and paste the followig code:

    sudo add-apt-repository ppa:webupd8team/atom

  • then update system package index and install the package

@calrrox
calrrox / array.rb
Created August 12, 2018 20:48
sample extension, create sample! method
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
@calrrox
calrrox / vs_config.json
Last active February 14, 2020 22:19
configuration for vs code
// 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