일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- scope
- 회고
- 개발공부
- multer
- React
- 자료구조
- Andrew Ng
- 리눅스
- Til
- 객체
- Machine Learning
- javascript
- coursera
- 1일1문장
- 우선순위
- Sequence
- docker
- 자바스크립트
- NextJS
- HTTP
- CSS
- 스파르타코딩클럽
- 데이터전송
- 러닝자바스크립트
- 끈기
- nodejs
- reactnative
- 클로저
- ES6
- Linux
- Today
- Total
목록Developers (73)
해나아부지 개발일지

정의(Definition) Data의 입구와 출구가 하나인 자료구조. 즉, 가장 나중에 들어온 Data가 나올때는 가장 먼저 나오는 LIFO(Last In First Out)의 구조를 가지는 자료구조이다. Push(넣기) & Pop(꺼내기)이라는 두가지 주요 작업으로 이루어지는 추상적인 데이터 유형이다. Push & Pop은 최근에 추가된 최상단 요소에서 일어난다. 위키백과의 설명을 보자 스택(stack)은 제한적으로 접근할 수 있는 나열 구조이다. 그 접근 방법은 언제나 목록의 끝에서만 일어난다. 끝먼저내기 목록(Pushdown list)이라고도 한다. 스택은 한 쪽 끝에서만 자료를 넣거나 뺄 수 있는 선형 구조(LIFO - Last In First Out)으로 되어 있다. 자료를 넣는 것을 '밀어넣는..

React를 하기 위해 필요한 것들 1. node.js node.js 공식 사이트에서 LTS 버전을 다운로드 및 설치한다. download | node.js 다운로드 | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 2. create-react-app node.js 설치가 끝나면(npm이 같이 설치된다) 터미널에서 npm(node package manager) 명령어를 입력해서 React 패키지를 설치해준다. //Mac $npx create-react-app react-app npx는 npm 5.2 버전 이후부터 제공되는 명령어로 원래는 로컬(데스크탑) 전역에 react 패키지 설치 후 ..

파이썬에서는 버전관리 및 각 프로젝트 별 충돌을 피하기 위해 가상환경을 사용한다. 맥OS #in Terminal #가상환경 설치 pip3 install virtualenv #프로젝트 생성 virtualenv 폴더명 #가상환경 실행 source 폴더명/bin/activate #가상환경 종료 deactivate 모듈 - 전역변수, 함수 등을 모아논 파일 패키지 - 모듈이 모이면 패키지! 모듈을 디렉토리 형식으로 구조환 한 것 패키지 내 각 디렉토리에는 __init__.py가 반드시 존재해야 한다. 참고 OffByOne님블로그
class Cat: species = "russian blue" #속성 정의 #인스턴스 생성시 개별적으로 부여할 속성을 만들 때 사용한다 def __init__(self, name, sex, 인자...): self.name = name //self - javascript에 this 역할인듯 self.sex = sex 현실세계의 개념을 추상화하는 객체! 파이썬에서도 자바스크립트와 마찬가지로 클래스명은 대문자로 써줘야함 Cat Cat이라는 공유 class를 가지고 여러 인스턴스 고양이를 만들 수가 있다 cat1 = Cat('냥1', '수컷') cat2 = Cat('냥2', '암컷') print(cat1.species) #russian blue print(cat2.species) #russian blue pr..
let date = new Date(); - Methods getFullYear() - Returns the 4-digit year getMonth() - Returns a zero-based integer (0-11) representing the month of the year. getDate() - Returns the day of the month (1-31). getDay() - Returns the day of the week (0-6). 0 is Sunday, 6 is Saturday. getHours() - Returns the hour of the day (0-23). getMinutes() - Returns the minute (0-59). getSeconds() - Returns th..
1. 클로저를 활용한 html tag 생성 함수 function htmlMaker(tag) { let startTag = ''; let endTag = ''; return function (content) { return startTag + content + endTag; } } // 출력값 확인 let divMaker = htmlMaker('div') console.log( divMaker('안녕하세요') ) // 안녕하세요 2. return값을 람다식으로 변환 function htmlMaker(tag) { let startTag = ''; let endTag = ''; return (content) => startTag + content + endTag; } 3. 람다식을 2번 사용하여 클로저를 구현..