###Questions to ask yourself:
Variables
- Can I define the term 'variable'?
#These Settings Establish the Proper Database Connection for Heroku Postgres | |
#The environment variable DATABASE_URL should be in the following format: | |
# => postgres://{user}:{password}@{host}:{port}/path | |
#This is automatically configured on Heroku, you only need to worry if you also | |
#want to run your app locally | |
require 'active_record' | |
configure :production, :development do | |
db = URI.parse(ENV['DATABASE_URL'] || 'postgres://localhost/projecttwo') |
development: | |
adapter: postgresql | |
database: development | |
username: <%= ENV['PG_USER'] %> | |
password: <%= ENV['PG_PASS'] %> | |
host: localhost |
To create at executable
chmod 755 FILENAME
To write script in Ruby add #!/usr/bin/env ruby
to top of file
###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 [email protected]:darthneel/wdi-submit-hw.git ~/.temp_wdisubmit_gemfile
function objectsAreEqual(objectA, objectB) { | |
if (objectA === objectB) { | |
return true; | |
} | |
var objectAKeys = Object.keys(objectA); | |
var objectBKeys = Object.keys(objectB); | |
if (objectAKeys.length != objectBKeys.length) { |
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; | |
} | |
}; |
<div class="box"> | |
</div> |