본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

Programming (19)
map vs forEach

map vs forEach map은 새로운 array를 리턴하고 forEach는 original array를 수정하여 리턴한다. -> 즉 기존 array를 남기는 map()을 사용하는 것이 함수형프로그래밍에 더 적합하다. forEach자체는 original array를 return하지만 callback function이 변화를 일으킨다. Example code. let arr = [1,2,3]; const arrMap = arr.map(x => x*2); console.log("arr", arr) //arr [ 1, 2, 3 ] console.log("arrMap", arrMap); //arrMap [ 2, 4, 6 ] arr.forEach((x, index) => arr[index] = x * 3); ..

Programming 2022. 8. 15. 17:13
git remote 변경

check git remote git remote -v change git remote git remote set-url origin 'your address'

Programming 2021. 3. 6. 14:13
create git branch

git status //check the git status git pull origin 'branch이름' git checkout -b "branch name" // with '-b', you can create a new branch and checkout at the same time git add . git commit -m "message" git push origin 'branch이름' git checkout master git pull

Programming 2021. 2. 27. 15:13
delete git repository

기존의 git을 삭제 후 다시 설정하는 법. 잘못 생성한 폴더로 가서 .git 폴더 전체 삭제 rm -rf .git/ 원하는 폴더로 이동 후 git init git add -A git commit -m "commit message" USERNAME@github.com/USERNAME/REPOSITORY_NAME.git git push -u origin master git add -A 를 하니 에러나던게 사라지고 잘 push됨. 만약에 git repository의 상위 폴더로 옮기고 싶을 경우. 전체 폴더를 복사해서 상위로 옮기는 방법을 사용!

Programming 2020. 11. 27. 23:10
cross-env 설정은 development로 해야한다.

경로 자동 지정을 위해 cross-env를 사용할 때는 반드시 development로 하고 배포할 때 production으로 바꿀 것. 경로 자동 지정이 원활히 작동하지 않을 경우에는. env file에서 설정이 잘못되어있지 않은지 확인하자. NODE_ENV = development

Programming 2020. 6. 23. 12:54
git the requested URL returend error : 403

1. 권한부여. Give authority to a user. git remote set-url origin https://USERNAME@github.com/USERNAME/REPOSITORY_NAME.git 2. push to origin master git push -u origin master

Programming 2020. 2. 17. 20:09
이전 1 2 3 4 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • hackerrank solution
  • HashMap
  • 알고리즘
  • hackerrank
  • string class in java
  • equals()
  • compareTo()
  • math.abs
  • math.max
  • java
  • substring()
  • repeat()
  • easy javascript algorithm
  • hackerrank javascript solution
  • 프로그래머스 알고리즘
  • easy algorithm
  • algorithm
  • Javascript Algorithm
  • HackerRank Algorithm
  • javascript
  • code refactoring
  • Collection Framework
  • ... in Javascript
  • 프로그래머스 알고리즘문제
  • Object type casting
  • hackerrank javascript
  • 프로그래머스
  • spring boot application
  • rest parameter
  • C++
more
«   2025/09   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바