Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added Lesson1-Git/newFile.js
Empty file.
22 changes: 21 additions & 1 deletion Lesson2-HTML-CSS/homework/homework.html
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
<!-- In this file you will complete the homework found in the homework-readme.md file -->
<div class="divClass">
<h1>
Brian Flynn
</h1>
<h3>Lambda School</h3>
<h4>HTML/CSS Homework</h4>
</div>
<class="divClass">
<span id="spanId">My favorite food is perogis because of their texture. They're easy to cook and very tasty. Baba's Perogis are the best place in New York.</span>
<div>
<a href=http://www.babasbk.com/>Visit Baba's for some perogis!</a>
</div>
</div>
<div id="thirdDiv">
<ul>
<li>Perogis with salt</li>
<img src='https://media.foodnetwork.ca/recipetracker/e5f84f76-cef1-4ae5-be33-1ce236f4a6d5_grandma-didurs-perogies-from-tutorial_WebReady.jpg'/>
<li>Perogis with applesauce</li>
<img src='https://food.fnr.sndimg.com/content/dam/images/food/fullset/2010/7/21/2/FNM_090110-OOTB-009_s4x3.jpg.rend.hgtvcom.616.462.suffix/1371593034302.jpeg'/>
</ul>
</div>
48 changes: 38 additions & 10 deletions Lesson3-CSS-Positioning/homework/homework.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,64 @@ in this folder, you are in the wrong place.

/* We will start this one off for you: */
#exerciseOne {

text-align: center;
}


/* Exercise Two: Positioning a Header Bar*/

/* Place code here */
#exerciseTwo{
display:none;
}



/* Exercise Three: */

/* Place code here */
#exerciseThree{
top: 100px
left: 200px;
}



/* Exercise Four: */

/* Place code here */
#exerciseFour{
positon: fixed;
}



/* Exercise Five */
#exerciseFive{

/* Place code here */

display: flex;
justify-content: space-evenly;
align-items: center;

}

/* Exercise Six */

#exerciseSeven {
display: flex;
#exerciseFive {
flex-direction: row-reverse;

}


/* Exercise Seven */

#exerciseSeven{
display: flex;
}

#itemOne{
color = red;
width = 200px
align-self: flex-start;
}

#itemTwo{
color = blue;
width = 300px
align-self: flex-start;
}
97 changes: 54 additions & 43 deletions Lesson4-JS-I/homework/homework.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
//In these first 6 questions, replace `null` with the answer

//create a string variable, it can contain anything
let newString = null ;
let newString = boom;

//create a number variable, it an be any number
let newNum = null ;
let newNum = 4;

//create a boolean variable
let newBool = null ;
let newBool = true;

//solve the following math problem
let newSubtract = 10 - null === 5;
let newSubtract = 10 - 5 === 5;

//Solve the following math problem
let newMultiply = 10 * null === 40 ;
let newMultiply = 10 * 4 === 40;

//Solve the following math problem:
let newModulo = 21 % 5 === null ;
let newModulo = 21 % 5 === 1;



Expand All @@ -27,126 +27,137 @@ let newModulo = 21 % 5 === null ;
//Do not change any of the function names

function returnString(str) {
//simply return the string provided: str
return str
}

function add(x, y) {
// x and y are numbers
// add x and y together and return the value
// code here
return x + y
}

function subtract(x, y) {
// subtract y from x and return the value
// code here
return x - y
}

function multiply(x, y) {
// multiply x by y and return the value
// code here
return x * y
}

function divide(x, y) {
// divide x by y and return the value
// code here
return x / y
}

function areEqual(x, y) {
// return true if x and y are the same
// otherwise return false
// code here
if (x=y) {
return true;
}

return false;
}

function areSameLength(str1, str2) {
// return true if the two strings have the same length
// otherwise return false
// code here
if (str1.length==str2.length){
return true;
}

return false;

}

function lessThanNinety(num) {
// return true if the function argument: num , is less than ninety
// otherwise return false
// code here
if (num < 90) {
return true;
}

return false;
}

function greaterThanFifty(num) {
// return true if num is greater than fifty
// otherwise return false
// code here
if (num < 50) {
return true;
}

return false;
}

function getRemainder(x, y) {
// return the remainder from dividing x by y
// code here
return x % y
}

function isEven(num) {
// return true if num is even
// otherwise return false
// code here
if (n % 2 == 0) {
return true;
}

return false;
}

function isOdd(num) {
// return true if num is odd
// otherwise return false
// code here
if Math.abs(n % 2 == 1) {
return true;
}

return false;
}

function square(num) {
// square num and return the new value
// hint: NOT square root!
// code here
return Math.pow(num,2);
}

function cube(num) {
// cube num and return the new value
// code here
return Math.pow(num,3);
}

function raiseToPower(num, exponent) {
// raise num to whatever power is passed in as exponent
// code here
return num ^ exponent;
}

function roundNumber(num) {
// round num and return it
// code here
return math.round(num);
}

function roundUp(num) {
// round num up and return it
// code here
return math.roundUp(num);
}

function addExclamationPoint(str) {
// add an exclamation point to the end of str and return the new string
// 'hello world' -> 'hello world!'
// code here
return str + '!';
}

function combineNames(firstName, lastName) {
// return firstName and lastName combined as one string and separated by a space.
// 'Lambda', 'School' -> 'Lambda School'
// code here

return firstName + ' ' + lastName;
}

function getGreeting(name) {
// Take the name string and concatenate other strings onto it so it takes the following form:
// 'Sam' -> 'Hello Sam!'
// code here
return 'Hello' + ' ' + lastName + '!';
}

// The next three questions will have you implement math area formulas.
// If you can't remember these area formulas then head over to Google.

function getRectangleArea(length, width) {
// return the area of the rectangle by using length and width
// code here
return (length * width);
}

function getTriangleArea(base, height) {
// return the area of the triangle by using base and height
// code here
return (base * height) / 2;
}

// Do not modify code below this line.
Expand Down
Empty file.
Loading