Skip to content

Instantly share code, notes, and snippets.

View lorenanicole's full-sized avatar
🤗
Live long 🖖🖖and Python 🐍🐍!

Lorena Mesa lorenanicole

🤗
Live long 🖖🖖and Python 🐍🐍!
View GitHub Profile
class Car
@@WHEELS = 4
def initialize(args)
@color = args[:color]
@wheels = @@WHEELS
end
def drive
@status = :driving
end
def brake
@lorenanicole
lorenanicole / 0.2.1-boggle_class_from_methods.rb
Last active December 28, 2015 16:29 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
attr_accessor :board
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end
@lorenanicole
lorenanicole / gist:6907486
Last active December 25, 2015 03:09
RVM: 10.8.5 Mountain Lion package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libksba_openssl.log
[2013-10-09 15:10:03] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install ()
{
brew unlink "$@" || true;
brew install "$@" || {
typeset ret=$?;
rvm_warn "There were package installation errors, make sure to read the log.
Try \`brew tap --repair\` and make sure \`brew doctor\` looks reasonable.