Instantly share code, notes, and snippets.

View switch_statements.rb
## -----------------------------------------------------------------------------
## Replace Type Code With Subclasses
## Replace Conditional with Polymorphism
## -----------------------------------------------------------------------------
# Start
class Animal
def initialize(type_code)
@type_code = type_code
View rpi-notes.md

Raspberry Pi Onboarding Steps

  • Updating packages
    • sudo apt-get update
    • sudo apt-get upgrade
    • sudo apt-get clean
    • sudo apt-get autoremove
  • Installing Vim
    • sudo apt-get vim
  • Apply a .vimrc
  • Change default editor