전체 글(134)
-
git clone
git clone 리포 주소 cd 클론된 깃폴더 git pull origin(임의의 이름) branch(끌어오려는 브랜치명) git log git add 부터 사용 가능
2022.09.21 -
console창에서 undefined가 나오는 이유,,,
선언만 했을때는 return 값이 없기 때문에 undefined가 나온데 처음 알았네
2022.09.20 -
git 수업
ls 현재 폴더 확인 mkdir 폴더 만들기 dir 현재 위치 파일들 확인 # 현재 디렉토리에 이름이 `project1`인 저장소 만들기 git init project1 # `mydir` 디렉토리 안에 이름이 `hello`인 저장소 만들기 cd mydir git init hello # `mydir/world` 디렉토리를 저장소로 만들기 cd world git init git branch 새브랜치명 => 새 브랜치 생성 git branch => 현재있는 브랜치들 확인 git checkout 브랜치명 => 브랜치를 변경 git checkout 깃로그숫자(?) 과거의 파일 내용 확인 git log 깃 메시지 확인 git status git commit --amend -m "수정할 메시지" git reset H..
2022.09.16 -
알바천국 스크래퍼
https://replit.com/@BB2e/Day-Eight-Blueprint-1#main.py Day Eight Blueprint-1 A Python Repl by BB2e replit.com import os import csv import requests from bs4 import BeautifulSoup os.system("clear") alba_url = "http://www.alba.co.kr" html = requests.get(alba_url).text # print(html) soupStart = BeautifulSoup(html, "html5lib") brands = soupStart.select("#MainSuperBrand .goodsBox .impact") # name = na..
2022.07.21 -
csv
# cvsFile = open(f"{brandName}.csv", 'w', encoding="utf-8") # fileWrite = csv.writer(cvsFile) # data = f'["{location.text}", "{storeName.text}"]' # fileWrite.writerow(data) # file.close()
2022.07.21 -
웹스크래핑 잘써놓은 블로그
https://dsc-sookmyung.tistory.com/85
2022.07.20 -
python save to csv 2022.07.20
-
python replit request 설정
import requests from bs4 import BeautifulSoup arra = requests.get('https://www.indeed.com/jobs?q=python&limit=50') # > html 전체를 긁어온것 print(arra) soup = BeautifulSoup(arra.text, 'html.parser') # print(soup.title) # print(soup.title.name) # print(soup.a) # print(soup.p['class']) # soup.find_all(class="accessibilityMenu") # print(soup.find(id="skipToJobs")) pagination = soup.find('div', {'class': "..
2022.07.20 -
파이썬 과제 정답
https://gist.github.com/serranoarevalo/a830deafa1dc133b8f4e6ee19e56d0be
2022.07.14 -
홈페이지에 구글 번역기 다는법
html 하단에 삽입해야한다.
2022.07.13 -
React.useState(초기값) => 배열을 반환 [데이터, 데이터를 바꿀 modifier] 2022.07.11
-
REACT unpkg CDN 컴포넌트를 다른 컴포넌트 안에 넣기
unpkg REACT / REACT-DOM unpkg babel standalone 요소들을 함수형으로 바꾸면 JSX는 이렇게 불러오기 가능 >>컴포넌트를 다른 컴포넌트 안에 넣기
2022.07.11 -
npm i -D @types/node(원하는 패키지명)
https://github.com/DefinitelyTyped/DefinitelyTyped
2022.07.11 -
debugger
https://ko.javascript.info/debugging-chrome
2022.07.08 -
typescript 마지막 과제
https://huchu.link/iYfHybK
2022.07.08 -
타입스크립트 제네릭 2022.07.08
-
타입스크립트 모듈 불러오기
src폴더에 index.ts // import {init, exit} from 'myPackage'; // 에러 해결을 위해 myPackage.d.ts를 만든다 import {init, exit} from './myPackage2'; // allowJS를 true해주면 에러가 사라짐 // js 패키지 파일을 ts에서도 사용하고 싶으면 종종 정의해줘야한데 localStorage.getItem("A"); // "lib": ["DOM"]이라서 가능 // ㄴ> localStorage를 따라가면 node module 어딘가에 있는 // 모듈의 타입을 선언해주는 declaration file을 볼수있따. // localStorage. init({ debug: true, url:"true", }) exit(1); c..
2022.07.08 -
github commit 간결한버전
https://mosei.tistory.com/entry/%EA%B8%B0%EC%A1%B4-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8%EB%A5%BC-git-repository%EC%97%90-%EC%97%B0%EA%B2%B0-%ED%95%98%EA%B8%B0 https://jeongkyun-it.tistory.com/128 # git init # git remote add origin 저장소경로 # git add . # git commit -m "커밋 메시지" # git push origin 브랜치명 // main인데,, master --------------------------------- # git remote -v : 연결된 저장소명 확인 # git status maste..
2022.07.07 -
jsDoc
https://okayoon.tistory.com/entry/JSDoc%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%B4%EC%84%9C-Javasript-%EB%AC%B8%EC%84%9C%ED%99%94%ED%95%B4%EB%B3%B4%EC%9E%90
2022.07.07 -
@param, @returns
/** * Initializes the project // 어떤 함수인지 설명 * @param {object} config // 입력값의 이름은 config이고 타입은 객체 * @param {boolean} config.debug // config.debug에는 불린값이 있다. * @param {string} config.url // config.url에는 string이 들어있음 * @return boolean // boolean을 return함 */ // ㄴ> 타입스크립트가 위의 코멘트를 읽고 타입을 체크해줄것. export function init(config){ return true; }
2022.07.07 -
vendor prefix free
https://projects.verou.me/prefixfree/
2022.07.07 -
typescript 초기 설정
/* # mkdir typechain # code typechain # npm init -y >> package.json 생성 * package.json { "name": "type", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" } : main 삭제, scripts 수정 : scripts 안의 내용물 삭제 { "name": "type", "version": "1.0.0", "description": "", "scripts": { }, "..
2022.07.07 -
타입 스크립트 미니 api 정답
https://huchu.link/aYZ1BXp https://developer.mozilla.org/ko/docs/Web/API/Geolocation_API/Using_the_Geolocation_API https://developer.mozilla.org/ko/docs/Web/API/Window/localStorage // LocalStorage Interface abstract class LocalStorage { protected items: Items; constructor() { this.items = {}; } abstract length(): number; abstract key(index: number): T; abstract getItem(key: string): T; abstract ..
2022.07.07 -
타입스크립트에게 오브젝트 모양을 알려주는 방법 : 타입 OR 인터페이스
https://huchu.link/8RQYL7k
2022.07.06 -
타입스크립트 abstract , interface
https://huchu.link/l1itBuy
2022.07.06