ai 에 관하여

coursera.org/learn/machine-learning#syllabus

 

linux 명령어에 관하여

https://ksit7.blogspot.com/2021/03/linux-fg-bg-kill-ctrlz.html

 

 

 

vi 에 관하여

https://wiki.kldp.org/KoreanDoc/html/Vim_Guide-KLDP/Vim_Guide-KLDP.html

 

 

 

git에 관하여

https://www.youtube.com/watch?v=uA6lzRppb6E&list=PL93mKxaRDidFtXtXrRtAAL2hpp9TH6AWF&index=1 

 

git merge --squash topic

블로그 이미지

Or71nH

,

단축키 shift + enter : 한줄을 터미널에서 실행 시커줌 import tensorflow같은게 모듈이 있나 확인하기 좋음

command + shift + c 지금 vscode의 터미널을 띠워줌

따로 써버를 돌리려할때 좋음

블로그 이미지

Or71nH

,

mac : montery 12.0 v

vscode 를 디버깅 할때 문제가 생겻따 자꾸 2.7를 부르는 것이다

그럼으로 파이썬 설정을 하기위해 파이썬 위치를 찾고 디폴틀값을 수정해줘야한다

 

 

{
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    "window.zoomLevel": 1,
    "git.autofetch": true,
    "terminal.integrated.inheritEnv": false,
    "python.defaultInterpreterPath": "/usr/local/bin/python3.9"
}

이것으로 정상 작동

블로그 이미지

Or71nH

,

python 3.x와 python 2.x가 같이 설치되어있을 경우,

일방적으로 python 2.x가 python 명령 default로 설정되어있음.

 

terminal에서 아래 명령을 실행하면,

 

alias python=python3

 alias python=/usr/local/bin/python3.10

 

 

 alias python=/usr/local/bin/python3.9

 alias python=/usr/local/bin/python3.8

 

를 실행 후 python --version 체크하면 python 3임을 확인할 수 있음

 

vi ~/.bashrc

블로그 이미지

Or71nH

,

전체 코드

function TopHeightObject(target){
  var TopHeightObjectList = []
  $(target).each(function(){
    console.log($(this).offset().top);
    TopHeightObjectList.push($(this));
  });
  return TopHeightObjectList
}
function TopHeightNavColor(target,topHeight,scrollHeight){
  console.log(target,topHeight,scrollHeight);
  if (topHeight < scrollHeight){
    $(target).each(function(){ 
      this.animate({color: "#000"}, 1000 );
    });
  }
  else{
    $(target).each(function(){ 
      this.animate({color: "#fff"}, 1000 )}
    );
  }
}

function TopNavMovementButton(buttonTarget,MoveHeight){
  $(buttonTarget).click(()=> {
    $('body,html').animate({scrollTop : MoveHeight}, 1000);
  });
}


$(document).ready(()=>{
  var TopHeightList = TopHeightObject('body section');
  
  //기본
  TopNavMovementButton('#about-btn',TopHeightList[1].offset().top)
  TopNavMovementButton('#contact-btn',TopHeightList[2].offset().top)
  
  //스크롤
  $(window).scroll(()=>{
    var scrollHeight = $(window).scrollTop()
    TopHeightNavColor('.menu-right button',TopHeightList[1].offset().top,scrollHeight);
  })
})

네비게이션 색깔 함수

function TopHeightNavColor(target,topHeight,scrollHeight){
  console.log(target,topHeight,scrollHeight);
  if (topHeight < scrollHeight){
    $(target).each(function(){ 
      this.animate({color: "#000"}, 1000 );
    });
  }
  else{
    $(target).each(function(){ 
      this.animate({color: "#fff"}, 1000 )}
    );
  }
}

네비게이션 이동 함수

function TopNavMovementButton(buttonTarget,MoveHeight){
  $(buttonTarget).click(()=> {
    $('body,html').animate({scrollTop : MoveHeight}, 1000);
  });
}

 

화면 함수

function TopHeightObject(target){
  var TopHeightObjectList = []
  $(target).each(function(){
    console.log($(this).offset().top);
    TopHeightObjectList.push($(this));
  });
  return TopHeightObjectList
}

 

블로그 이미지

Or71nH

,