######################################################
This set is broken down into
-
Read more about SSH agent
And read about Generating a new SSH key from Github help
// Brightness math based on: | |
// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
$red-magic-number: 241; | |
$green-magic-number: 691; | |
$blue-magic-number: 68; | |
$brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number; | |
@function brightness($color) { | |
// Extract color components |
######################################################
This set is broken down into
Read more about SSH agent
And read about Generating a new SSH key from Github help
#############################################################
⋅⋅1. Log in to your server as the root
user
`local$ ssh root@server_ip address e.g ssh [email protected]`
You can learn how to add SSH to your Windows's system from GIT BASH
#The function find the intersection point of two lines | |
def intersect_rec(a, b) | |
#Function takes the coordinate of horizontal and vertical line #Return the coordinate of the intersection | |
intersect = [] | |
if a.length !=4 and b.length !=4 | |
return "You did not enter a rectangle vertices" | |
end | |
x1 = a[0] | |
x2 = a[0]+a[2] | |
y1 = a[1] |
def product_of_elements_array(a) | |
i = 0 | |
prod = 1 | |
while i <= (a.length-1) | |
prod = prod * a[i] | |
i+=1 | |
end | |
prod | |
end |
puts "Enter a number to to check" | |
number = gets.chomp.to_i | |
def abs(firstNum,secNum) | |
if firstNum > secNum | |
firstNum - secNum | |
else | |
secNum - firstNum |
puts "Enter a number to find the square" | |
number = gets.chomp.to_i | |
puts "Enter the accepted error" | |
error = gets.chomp.to_i | |
def abs(firstNum,secNum) | |
if firstNum>secNum | |
firstNum-secNum |