Skip to content

Instantly share code, notes, and snippets.

View rs-ehyde's full-sized avatar

Emma Hyde rs-ehyde

View GitHub Profile
Great Keyboard Shortcuts:
  • is the Command () key.
  • is the Control key.
  • is the Option (alt) key.
  • is the Shift key.
Keyboard Shortcut! Why I Use It All The Time!
⌘+Left Click See Declaration/Usages
(if it is unable to choose one, a menu with the possibilities opens)
⌘⌥+L Auto-Format Highlighted Section(if no section highlighted, format entire document)
@rs-ehyde
rs-ehyde / ruby_rails_cheatsheet.rb
Last active March 8, 2021 21:29
Ruby/Rails Cheatsheet
# According to Ruby’s official web page, Ruby is a:
"dynamic, open source programming language with a focus on simplicity and productivity."
"It has an elegant syntax that is natural to read and easy to write."
# Basic syntactical code:
variable_name = 'sillyboys' # no semicolons, untyped
def method_name do
puts 'lol' # no parentheses needed for method calls if no chaining
@rs-ehyde
rs-ehyde / rvm_errors_catalina.md
Last active March 3, 2021 20:28
RVM: Ruby installation errors on Catalina and above

The following error is encountered in OSX Catalina (and presumably newer versions):

ruby-2.7.2 - #extracting ruby-2.7.2 to /Users/ehyde/.rvm/src/ruby-2.7.2 - please wait
ruby-2.7.2 - #configuring - please wait
ruby-2.7.2 - #post-configuration - please wait
ruby-2.7.2 - #compiling - please wait
Error running '__rvm_make -j12',
please read /Users/ehyde/.rvm/log/1614189092_ruby-2.7.2/make.log

There has been an error while running make. Halting the installation.