Skip to content

Instantly share code, notes, and snippets.

View vitoyayo's full-sized avatar
🌴

Victor Cedeno vitoyayo

🌴
View GitHub Profile
@vitoyayo
vitoyayo / postgres-brew.md
Created January 27, 2021 12:01 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@vitoyayo
vitoyayo / hash_recap.rb
Created September 4, 2020 13:24 — forked from stevecass/hash_recap.rb
Ruby hash recap
h1 = Hash.new # => {}
h2 = Hash.new("a") # => {}
h3 = {} # => {}
h4 = {abc: "def"} # => {:abc=>"def"}
h5 = {:abc => "def"} # => {:abc=>"def"}
h6 = {"abc" => "def"} # => {"abc"=>"def"}
h1["abc"] # => nil
h1.fetch("abc", "kitty") # => "kitty"