Everyone will need to install two tools to follow along during class:
- MySQL Server, a mostly invisible program which stores information.
- MySQL Workbench, a program designed to help you interact with the server.
| [ | |
| { | |
| "suit": "hearts", | |
| "value": 2 | |
| }, | |
| { | |
| "suit": "hearts", | |
| "value": 3 | |
| }, | |
| { |
| <div class="box"> | |
| </div> |
| function objectsAreEqual(objectA, objectB) { | |
| var objectAKeys = Object.keys(objectA); | |
| for (var i = 0; i < objectAKeys.length; i++) { | |
| var prop = objectAKeys[i]; | |
| if (objectA[prop] !== objectB[prop]) { | |
| return false; | |
| } | |
| }; |
| function objectsAreEqual(objectA, objectB) { | |
| if (objectA === objectB) { | |
| return true; | |
| } | |
| var objectAKeys = Object.keys(objectA); | |
| var objectBKeys = Object.keys(objectB); | |
| if (objectAKeys.length != objectBKeys.length) { |
###Copy and paste each of the below steps into your Terminal.
###Be sure to do one at a time and wait for a command to finish before inputting the next one.
mkdir ~/.temp_wdisubmit_gemfile
git clone git@github.com:darthneel/wdi-submit-hw.git ~/.temp_wdisubmit_gemfile
To create at executable
chmod 755 FILENAME
To write script in Ruby add #!/usr/bin/env ruby to top of file
| development: | |
| adapter: postgresql | |
| database: development | |
| username: <%= ENV['PG_USER'] %> | |
| password: <%= ENV['PG_PASS'] %> | |
| host: localhost |