TO DO LIST

  1. Practice python using app.route ✅

WHAT I LEARNED

  • request.args.get allows to get more than one positional argument
  • make fake database to shorten searching times when he searches same item again
  • better to use 'SINGLE QUOTE' for attributes

  • Can use python inside HTML 
    • Need to put both {% if __________________ %} and {% endif_______________ %}
  • Need to use the |safe filter to explicitly mark a string as safe HTML 

 

 

reference: http://flask.palletsprojects.com/en/1.1.x/templating/#controlling-autoescaping

'TIL' 카테고리의 다른 글

TIL 2020.10.24  (0) 2020.10.24
TIL 2020.10.22  (0) 2020.10.22
TIL 2020.10.20  (0) 2020.10.20
TIL 2020.10.19  (0) 2020.10.19
TIL 2020.10.16  (0) 2020.10.16

TO DO LIST

  1. review python ✅
  2. review vanilla javascript ✅

WHAT I LEARNED

  • How to use replace
    • word.replace(u'\xa0', u' ') = replaced with space
    • word.replace(u'\xa0', u'') # removed completely
  • How to make csv
    • mode="w" write only
    • mode="r" read only
    • has to put inside the list ynder wruter,writerow to be printed in csv as below

'TIL' 카테고리의 다른 글

TIL 2020.10.22  (0) 2020.10.22
TIL 2020.10.21  (0) 2020.10.22
TIL 2020.10.19  (0) 2020.10.19
TIL 2020.10.16  (0) 2020.10.16
TIL 2020.10.15  (0) 2020.10.15

TO DO LIST

  1. 코드스테이츠 지원서 마무리와 제출 ✅
  2. 파이썬 챌린지-알바천국 scrapping 하기 ✅

WHAT I LEARNED

  • Module = a file containing Python definitions and statements
  • Package = a way of structuring Python’s module namespace by using “dotted module names”. package can be module but not all module can be package

 

 

'TIL' 카테고리의 다른 글

TIL 2020.10.22  (0) 2020.10.22
TIL 2020.10.21  (0) 2020.10.22
TIL 2020.10.20  (0) 2020.10.20
TIL 2020.10.16  (0) 2020.10.16
TIL 2020.10.15  (0) 2020.10.15

TO DO LIST

  1. vanilla javascript를 이용해서 계산기 만들기 ✅
  2. python을 이용하여 web scrapping하기 ✅
  3. 코드스테이츠 지원서 작성 ❌ 아직 3일이 더 남았으니, 계속 고쳐나갈 예정..

WHAT I LEARNED

IF/ELSE/ELIF TRY/EXCEPT
3 중 하나가 실행 됨. IF/ELSE와 비슷하게 사용되지만, 예측 불가능한 일이 발생하였을 때, 방지하기 위해 사용함.

 

'TIL' 카테고리의 다른 글

TIL 2020.10.22  (0) 2020.10.22
TIL 2020.10.21  (0) 2020.10.22
TIL 2020.10.20  (0) 2020.10.20
TIL 2020.10.19  (0) 2020.10.19
TIL 2020.10.15  (0) 2020.10.15

오늘부터 TIL 작성을 해보려고 한다.

 

현재 노마드 코더 웹사이트에서 바닐라스크립트 2주 완성반과 파이썬 2주 완성반 첼린지를 진행 중이다.

 

파이썬 2주 완성반에서 4째 날이고, 바닐라 자바스크립트 2주 완성반에서는 11일째이다. 


TO DO LIST

  1. python을 이용하여, url이 온라인 인지 아닌 지 확인하기 ✅ 겨우 끝냈으나, 내일 정답을 받으면 좌절 예상...  
  2. vanilla javascript 이용하여 사측연산 계산기 만들기 ❌ 1번을 하느라 html만 완성한 상태... 내일 나머지 css와 js를 완성시켜야 된다.
  3. CSS 복습 ✅
    • codepip.com/games/ - 웹사이트 가입 후, 무료로 더 많이 게임으로 복습 가능. 유료 게임도 있음. 
      • 이 중, Flexbox Froggy와 Grid Garden 하기
 

Sourcery - A magical game of coding HTML with Emmet

Learn to harness the power of Emmet, a popular code editor plugin. Mentored by the Sourceress, you'll summon large chunks of HTML code with just a snap of your fingertips. With Emmet, you can type shortcuts that expand to the code you want — helping you

codepip.com


WHAT I LEARNED

 

  1. python에서 input이란 명령어이며, 내가 입력한 값을 컴퓨터가 받을 수 있게 도와준다. print와의 차이점을 이해하는 날이었다. print 같은 경우는 그냥 내가 입력한 값만 준다면, input은 내가 쓴 값을 다시 dictionary에서 가져오는 것이다. 
  2. input을 가져왔을 때, 소문자로 만드는 법, 띄어쓰기를 없애는 법, 여러 url을 넣었을 때, 쉼표로 그들을 쪼개는 법을 익혔다.
  3. strip을 통해 불필요한 스페이스들을 지우는 것이 가능하다.
  4. status.code가 200일 경우, 웹사이트가 온라인임을 확인한다.

'TIL' 카테고리의 다른 글

TIL 2020.10.22  (0) 2020.10.22
TIL 2020.10.21  (0) 2020.10.22
TIL 2020.10.20  (0) 2020.10.20
TIL 2020.10.19  (0) 2020.10.19
TIL 2020.10.16  (0) 2020.10.16

첫 html, css 프로젝트

 

첫 페이지

 

링크: paigekim29.github.io/paige-talk/

 

Paige Talk

No Service 18:43 99%

paigekim29.github.io

 

 

html 작동 시, Y=Uncaught SyntaxError가 발생

 

먼저 npm이 컴퓨터에 다운로드 되어있는 지 확인. 저번에 node.js를 다운로드하면서, 동시에 다운로드에 된 상태였음.

 

먼저 Visual Studio Code에서 새로운 터미널을 열어서 npm run start를 눌러보니, parcel 설치가 안되어 작동이 안됨.

Parcel website로 방문해, parcel 설치 방법을 알아낸 뒤, 다시 VSC 터미널로 가서

npm install -g parcel-bundler 입력 후 npm init -y 입력

 

참고: parceljs.org/getting_started.html

 

🚀 Getting Started

Getting Started Features 📦 Asset Types Advanced 🚀 Getting Started Parcel is a web application bundler, differentiated by its developer experience. It offers blazing fast performance utilizing multicore processing, and requires zero configuration. Fir

parceljs.org

 

그 후, npm run build와 npm run start를 하니, 에러가 사라짐.

 

 

+ Recent posts