SEI-ATL / UNIT_2

This repo is for all things Unit 2
0 stars 3 forks source link

Thursday, November 12, 2020 #1

Closed romebell closed 4 years ago

romebell commented 4 years ago

Admin πŸ‘€ - [admin] is looking into it πŸ‘ - [admin] Answer issue. Looks good. Code works.

Students πŸš€ - [student] I get it! πŸ˜• - [student] Still confused πŸ˜„ - [student] A simple error πŸŽ‰ - [student] My code now works

Admin/Students ❀️ - [student/admin] Love the topic or code snippet πŸ‘Ž - [student/admin] Code didn't work

romebell commented 4 years ago
romebell commented 4 years ago
Screen Shot 2020-11-12 at 9 34 20 AM
function checkWinner(player) {
    resetBall();
    if (player.score >= 10) {
        delete ball.speed;
        const newElement = document.createElement('p');

        newElement.textContent = `${player.paddle} wins!`;
        statement.appendChild(newElement);
    }
}
wjlock commented 4 years ago

Screen Shot 2020-11-12 at 12 36 59 PM

function detectPaddleHit() {
  let collisionPointBottomComputer = playerComputer.y + playerComputer.height;
  let collisionPointTopComputer = playerComputer.y;
  let ballPos = ball.y;
tylerdance commented 4 years ago
Screen Shot 2020-11-12 at 12 36 41 PM
subtractBtn.addEventListener('click', (e) => {
    e.preventDefault
    const currentValue = Number(input.value);
    input.value = currentValue - 1
    document.getElementById('display').textContent = currentValue - 1
})
nitishdayal commented 4 years ago
const removeComponent = (carousel, cb = () => null) => (
  carousel.setState(({ tail, curr, ...rest }) => {
    const { prev: newTail } = tail;

    if (newTail) {
      newTail.next = null;

      if (curr === tail) { curr = newTail; }

      tail = newTail;
    }

    return { ...rest, tail, curr };
  }) && cb());

Screen Shot 2020-11-12 at 9 36 57 AM

JJURIZ commented 4 years ago

image

const myFunc = () => {
    console.log(`IS THIS THING ON?`)
}

myFunc();
ABarranco95 commented 4 years ago
Screen Shot 2020-11-12 at 9 36 51 AM
function() {
consolelog(helloworld)
}
alanavery commented 4 years ago
Screen Shot 2020-11-12 at 11 37 36 AM
http.createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'text/html' });
  res.write(req.url);
  res.end();
}).listen(8080);
ruvvet commented 4 years ago

image

window.addEventListener('DOMContentLoaded', function () {
  calculate();
});
CoreyWilson319 commented 4 years ago

image


let hi = "hello"
canourrea23 commented 4 years ago

Screen Shot 2020-11-12 at 12 37 21 PM

addButton.addEventListener('click', addfunction)
    function addfunction(){
        result += parseInt(input.value)
        output.textContent = result
        if (input.value < 0) {
            output.style.color = 'black';
        }
    }
codebypaul commented 4 years ago

Screen Shot 2020-11-12 at 12 36 56 PM

app.get('/',(req,res)=>{
    const articles = [
        {
            title: 'Test Article',
            createdAt: new Date(),
            description: 'text description'
        },
        {
            title: 'Test Article',
            createdAt: new Date(),
            description: 'text description'
        }
    ]
    res.render('index',{ articles: articles })
})
sschneeberg commented 4 years ago
function codeSnippet(){
    console.log('this is a code snippet');
}
Screen Shot 2020-11-12 at 12 38 16 PM
lev-choubine commented 4 years ago

Screen Shot 2020-11-12 at 12 37 18 PM

const plus = document.getElementById('plus');
const minus = document.getElementById('minus');
const h1= document.querySelector('h1');
const input = document.querySelector('input');
let numb = 0;
h1.innerText=numb;
fmuwanguzi commented 4 years ago

Screen Shot 2020-11-12 at 12 38 01 PM

function up() {
    document.getElementById('Input').stepUp(1);
 }
 function down() {
    document.getElementById('Input').stepDown(1);
 }
tcgilbert commented 4 years ago
Screen Shot 2020-11-12 at 12 38 00 PM
function handleBackground() {
  if (yPosR === 0) {
    yPos += bgScroll * 0.5;
    ctx.drawImage(launchStage, 0, yPos, canvas.width, canvas.height);
    ctx.drawImage(stage2, 0, yPos - 800, canvas.width, canvas.height);
    ctx.drawImage(stars, 0, yPos - 1600, canvas.width, canvas.height);
  }
  if (yPos > 1600) {
    if (repeatBG.y1 >= repeatBG.height) repeatBG.y1 = -repeatBG.height;
    else repeatBG.y1 += bgScroll * 0.5;
    if (repeatBG.y2 >= repeatBG.height) repeatBG.y2 = -repeatBG.height;
    else repeatBG.y2 += bgScroll * 0.5;
    ctx.drawImage(stars, 0, repeatBG.y1, canvas.width, canvas.height);
    ctx.drawImage(stars, 0, repeatBG.y2, canvas.width, canvas.height);
  }
}
anonyymous1 commented 4 years ago

Screen Shot 2020-11-12 at 12 37 04 PM

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/main.css">
    <title>Project One - Assessment</title>
</head>
<body>
AlexJBustillos commented 4 years ago

Screen Shot 2020-11-12 at 12 37 26 PM

subtraction.addEventListener('click', function(){
    let result = parseInt(count.textContent) - parseInt(input.value)
    document.querySelector('.count').textContent = result

    if (result < 0) {
        count.style.color = "red";
    } else if (result > 0) {
        count.style.color = "black";
    }
})
tuhoalyhuynh commented 4 years ago
document.getElementById('clear').addEventListener('click', function(){
    document.querySelector('#tempToBeConverted').value = null;
    document.querySelector('#result').innerHTML = "";
}
)

code

AJStrizzy commented 4 years ago

Screen Shot 2020-11-12 at 12 38 28 PM

function minusFunction() {
    result -= parseInt(input.value)
    answer.innerHTML = result
    if (result < 0) {
        answer.style.color = 'red'
    }
       else if (result >= 0) {
            answer.style.color = 'black'.
    }
 }
NikkiHmltn commented 4 years ago

let animal = cat
console.log(cat)
Screen Shot 2020-11-12 at 9 39 44 AM
andrewemcmanus commented 4 years ago

Screen Shot 2020-11-12 at 12 37 59 PM

async function delay(ms) {
        return await new Promise(resolve => setTimeout(resolve, ms));
      };

let play = async ()=>{
        await delay(0);
        playComputer(); 
        await delay(5000);
        startTimer();
        playerGo();
        await delay(4000);
        let playerScore = comparePitches();
        if (playerScore < 5) {
          document.querySelector("#go").innerText = "Try again!";
        } else if (playerScore >= 5) {
          document.querySelector("#go").innerText = "You win!";
        }
      };
Swolepenguin commented 4 years ago

image

h1 {
  color: black;
  text-align: center;
}
output{
  display: inline;
  color: black
}

.divv {
  display: inline;
  margin: auto;
  align-items: center;
  text-align: center;
}
form{
  background-color: rgba(3, 141, 141, 0.651);
}

body{
  background-color: rgba(155, 1, 160, 0.767);
}
JaxonNarramore commented 4 years ago

Screen Shot 2020-11-12 at 11 39 34 AM

function addNumbers() { 
    let num1 = 2;
    let num2 = 3;
    console.log(num1);
    return num1 + num2;
  }
NykywanP commented 4 years ago
![Screen Shot 2020-11-12 at 12 38 18 PM](https://user-images.githubusercontent.com/71296393/98975510-31b4ad80-24e4-11eb-8637-035377e291f6.png)
add.addEventListener('click', function(){
    integer = 1;
    int.innerHTML = integer;
})
NykywanP commented 4 years ago

Screen Shot 2020-11-12 at 12 38 18 PM

edgerees commented 4 years ago

image

let threeLettersBack ='DEFGHIJKLMNOPQRSTUVWXYZABC';
console.log('teelettersback');
VM189:2 teelettersback
undefined
zfinnan commented 4 years ago
Screen Shot 2020-11-12 at 11 40 30 AM
function getProduct() {
let num1 = 5
return num1}
getProduct()
tuanhrex commented 4 years ago
document.querySelector('.subtract').onclick = function() {

    var input = document.querySelector('.input').value;
    console.log(input)
    let integer = Number(input);
    console.log(integer)
    let output = currentValue - integer
    console.log(output)
    currentValue = output
    if (currentValue < 0) {
        number.style.color ='red'
    } else {
        number.style.color ='black'
    }
    input = null
    number.textContent = currentValue

}

image

richardleung1 commented 4 years ago

Screen Shot 2020-11-12 at 12 39 56 PM

plus.addEventListener('click', function() {
    number = number + parseInt(input.value);
    display.textContent = number;
    if (number < 0) {
        display.style.color = 'red'
    } else {
        display.style.color = 'black'
    }
})
frankcollins3 commented 4 years ago

Screen Shot 2020-11-12 at 2 19 49 PM

const myName = "frank";
maddevred commented 4 years ago

Screenshot from 2020-11-12 12-44-58

timerId = setInterval(moveDown, 1000)
   function moveDown() {
       undraw() 
       currentPosition += width
       draw()
   }
jtreeves commented 4 years ago

Screen Shot 2020-11-12 at 12 42 57 PM

function addNumbers() { 
    let num1 = 2;
    let num2 = 3;
    console.log(num1);
    return num1 + num2;
}
romebell commented 4 years ago
const frankCollins = 'Frank Collins'
Screen Shot 2020-11-12 at 9 49 48 AM
romebell commented 4 years ago

https://github.com/SEI-ATL/UNIT_2/projects/2#card-49244268

romebell commented 4 years ago

https://github.com/SEI-ATL/UNIT_2/projects/2#column-11655851

maddevred commented 4 years ago

@pmacaluso3 Screenshot from 2020-11-12 15-57-07

maddevred commented 4 years ago

resolved Screenshot from 2020-11-12 16-00-57

maddevred commented 4 years ago

@pmacaluso3 Screenshot from 2020-11-12 16-24-04

Screenshot from 2020-11-12 16-27-41

maddevred commented 4 years ago

nevermind, guess google gave me the wrong command Screenshot from 2020-11-12 16-30-22

alanavery commented 4 years ago

Hey, guys. I was unable to access nodemon, despite successfully installing it. As you can see in the screenshot below, I confirmed that it's been installed at the global level, but when I try to access it, I get zsh: command not found: nodemon.

Screen Shot 2020-11-12 at 3 27 31 PM

I think it has something to do with correcting my $PATH in my .zshrc file, but I haven't quite figured it out. I'm working on it now, but wasn't sure if you had a quick fix for me.

canourrea23 commented 4 years ago

My node_modules is still showing in ls Screen Shot 2020-11-12 at 4 38 03 PM

alanavery commented 4 years ago

Hey, guys. I was unable to access nodemon, despite successfully installing it. As you can see in the screenshot below, I confirmed that it's been installed at the global level, but when I try to access it, I get zsh: command not found: nodemon.

Screen Shot 2020-11-12 at 3 27 31 PM

I think it has something to do with correcting my $PATH in my .zshrc file, but I haven't quite figured it out. I'm working on it now, but wasn't sure if you had a quick fix for me.

I finally got it working. I had to reinstall Node (I did it via Node Version Manager this time), as well as Nodemon, but I'm up and running now. Definitely need to dig into this more when I get timeβ€”shell profiles and where programs are saved is still a little hazy to me.