- Sign up using your google account at the firebase.io
- create an application from the firebase dashboard
- take note of the ID generated for your project
- this can be found in several places, however, the URL is the best place to look
- your project ID is found directly after
/project/
https://console.firebase.google.com/project/YOUR-PROJECT-NAME-HERE/overview
- your project ID is found directly after
- install the firebase CLI from the command line
npm install -g firebase-tools
- login
firebase login
- Create a project directory from the terminal
note: don't forget tocd
into the new directory - initialize the project
firebase init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous"> | |
<link rel="stylesheet" href="./styles/main.css" media="screen" title="no title" charset="utf-8"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box; | |
} | |
body{ | |
/*background-image: url(http://49.media.tumblr.com/tumblr_lx8ybzt0LY1qduy16o1_500.gif); | |
background-repeat: no-repeat; | |
background-size: 100%;*/ | |
background-color: #A3F7BF; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous"> | |
<link rel="stylesheet" href="main.css" media="screen" title="no title" charset="utf-8"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let numbers = [1,2,3,4,5,6,7,8,9]; | |
let otherNumbers = [18, 36, 4, 2, 19, 8, 7, 16, 45]; | |
let uniqueNumbers = []; | |
compareArrays = (firstArray, secondArray) => { | |
return firstArray.forEach((number) => { | |
let comparison = secondArray.some((otherNumber) => { | |
return number === otherNumber; | |
}); | |
!comparison ? uniqueNumbers.push(number) : null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let numbers = [1,2,3,4,5,6,7,8,9]; | |
let otherNumbers = [18, 36, 4, 2, 19, 8, 7, 16, 45]; | |
Array.prototype.compare = (firstArray, secondArray) => { | |
let uniqueNumbers = []; | |
firstArray.forEach((number) => { | |
let comparison = secondArray.some((otherNumber) => { | |
return number === otherNumber; | |
}); | |
!comparison ? uniqueNumbers.push(number) : null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Whatever, this is just a header</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Message</th> | |
<th>User</th> | |
<th colspan="3"></th> |
- Create a script titled “going_hiking”
- declare a variable titled 'temp'
- Have the program print “Let’s go hiking!”
i
f temp>=
50. - Otherwise have the program print “That’s WAY too cold for hiking!”
then...
- Include an
elsif
branch in our code that will print "It is 23 degrees!" when the variable is 23.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
protect_from_forgery with: :exception | |
before_action :configure_permitted_parameters, if: :devise_controller? | |
before_action :authenticate_user! | |
def configure_permitted_parameters | |
devise_parameter_sanitizer.permit(:sign_up, keys: [:name, :username, :bio, :location, :email, :password, :password_confirmation]) | |
devise_parameter_sanitizer.permit(:account_update, keys: [:name, :username, :bio, :location, :email, :password, :password_confirmation]) |
OlderNewer