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
node_modules |
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
npm i -g firebase-tools | |
firebase login | |
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
we learned | |
// name this function get coffess and export it | |
exports.getCoffeesTitles = function () { | |
// filter all coffees which is an array of objects | |
const coffeeTitles = allCoffees.filter(function(item){ | |
// return each coffee with its title | |
return item.title |
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
After installing RHEL/CentOS 7 minimal, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default. | |
This guide explain you to setup network on RHEL/CentOS 7. | |
Setup network on CentOS 7 minimal | |
First, type “nmcli d” command in your terminal for quick list ethernet card installed on your machine: | |
"nmcli d" command output | |
“nmcli d” command output | |
Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options). |
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
# | |
# Virtual Hosts | |
# | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at | |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> |
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 UsersController < ApplicationController | |
before_action :set_user, only: [:show, :edit, :update, :destroy] | |
after_action :notify_channel, only: [:destroy, :update, :create] | |
def index | |
@users = User.all | |
end | |
def show | |
end |
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
# clears the screen | |
system "clear" | |
#welcomes user to game | |
puts "Welcome to my game" | |
puts "what is your name?" | |
#getting uses name | |
name = gets.chomp |
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
# clears screen | |
system "clear" | |
#defines method to add and center the **** | |
def add_asterisks_withtext(text) | |
puts ("*"*100).center(110) | |
sleep 1 | |
puts text.center(110) | |
sleep 1 | |
puts ("*"*100).center(110) |