Coder Social home page Coder Social logo

hhomework2020's Introduction

๐Ÿ‘Skils

๐Ÿ’กMain

Python Flask Postgresql fastapi Docker

๐Ÿ“ƒSub

javajs typescript OSM geoserver QGIS React nextJsOL android

hhomework2020's People

Contributors

jaehyunl avatar tuxxon avatar

Watchers

 avatar  avatar

hhomework2020's Issues

hub.docker.com์„ github๊ณผ ์—ฐ๋™ํ•ด ๋†“์œผ์„ธ์š”

๋ชฉ์ : Dockerfile์ด ์žˆ๋Š” ๊ฒฝ์šฐ ์ž๋™ํ™”๋œ builds๊ฐ€ ๊ฐ€๋Šฅํ•ด์ ธ์š”.

  1. hub.docker.com์— ๋“ค์–ด๊ฐ€์„œ public์œผ๋กœ repoํ•˜๋‚˜๋ฅผ ์ƒ์„ฑํ•œ ๋‹ค์Œ
  2. ์— ๋“ค์–ด๊ฐ€์„œ, github์— ์—ฐ๋™ํ•  ์ˆ˜ ์žˆ๋Š” ์•„์ด์ฝ˜์„ ํด๋ฆญํ•˜๊ณ ,
    Dockerfile ์ด ์žˆ๋Š”, ์ด github repo๋ฅผ ์—ฐ๋™ํ•˜๋ฉด ๋ผ์š”.

[ํ™•์ธ์‚ฌํ•ญ] sorted() ๋ผ๋Š” ํ•จ์ˆ˜๋Š” ์–ด๋–ค ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ธ๊ฐ€์š”?

์ •๋ ฌ(Sort)์—๋Š”, ์ˆ˜๋งŽ์€ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ์žˆ์ฃ ?
๋ฒ„๋ธ”์†ŒํŠธ, ํ€ต์†ŒํŠธ ๋“ฑ๋“ฑ..

๊ทธ๋Ÿฐ๋ฐ, ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” sorted()๋ผ๋Š” ํ•จ์ˆ˜๋Š” ์–ด๋–ค ์ข…๋ฅ˜์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ธ์ง€ ํ™•์ธํ•ด ์ค„ ์ˆ˜ ์žˆ๋‚˜์š”?
์™œ? ์‹œ๊ฐ„ ๋ณต์žก๋„๊ฐ€ O(nLogN) ์ธ๊ฐ€์š”?

hub.docker.com๊ณผ slack์„ ์—ฐ๋™ํ•ด ๋†“์œผ์„ธ์š”.

๋ชฉ์  : dockerhub์—์„œ ๋ฐœ์ƒํ•˜๋Š” ๋ชจ๋“  ์ด๋ฒคํŠธ๋ฅผ ์Šฌ๋ž™์—์„œ ๋ฐ›์•„๋ณผ๊บผ์—์š”.
(์ฐจํ›„, ์ž๋™ํ™”๋œ, CI/CD ๊ตฌํ˜„)

์Šฌ๋ž™์ฑ„๋„ : #_dockerhub_homework
์—ฐ๋™๊ด€๋ จ URL = https://docs.docker.com/docker-hub/slack_integration/

[Refactoring] one line code๋กœ ์ž‘์„ฑํ•ด ๋ณด์„ธ์š”.

if a == b ์ดํ•˜์˜ ์ฝ”๋“œ๋ฅผ one line code๋กœ ์ž‘์„ฑํ•ด ๋ณด๋Š” ๊ฒƒ๋„ ๋ถˆํ•„์š”ํ•œ ์ฝ”๋“œ๋ฅผ ์ค„์ผ ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋ฒ•์ธ ๊ฑฐ ๊ฐ™์€๋ฐ, ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜๋‚˜์š”?

๋˜ ๋‹ค๋ฅธ ๋กœ์ง ์˜ค๋ฅ˜

์˜ˆ๋ฅผ ๋“ค์–ด

a = "baaab"
b = "babab"

์™„์ „ํžˆ ๋‹ค๋ฅธ ๋‹จ์–ด ์ธ๋ฐ,
์‚ฌ์ „์—, ์ค‘๋ณต์ œ๊ฑฐํ•˜๋Š” ๋กœ์ง์ด ์žˆ์–ด,
True ๊ฐ’์ด ๋‚˜์˜ค๊ฒ ์ฃ . ์ด๊ฒƒ์€ False๋กœ ๋‚˜์™€์•ผ ํ•ด์š”.

์ด์Šˆ ํ•ด๊ฒฐํ›„ ์—ญ์‹œ ์•„๋ž˜์—๋„ ๋‹ต๋ณ€๋‹ค์„ธ์š”.

[Refactoring] ๋ถˆํ•„์š”ํ•œ ์ฝ”๋“œ๋“ค.

  1. ์ƒ๋‹จ์— len() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ–ˆ๋Š”๋ฐ,
    ํ•˜๋‹จ์— a ==b ๋น„๊ต๋ฅผ ์ด๋ฏธ ํ•ด์ฃผ๊ณ  ์žˆ์–ด์š”? ํ•„์š”ํ•œ ๋กœ์ง์ธ๊ฐ€์š”?

  2. print("True") ์—์„œ, ๊ตณ์ด ๋ฌธ์ž์—ด์„ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ "ํ•„์š”ํ•œ๊ฐ€์š”?
    " ์—†์ด ์‚ฌ์šฉํ•˜๋Š”๊ฒŒ ๋” ์ข‹์ง€ ์•Š๋‚˜์š”?

๋กœ์ง ์˜ค๋ฅ˜ ์ด์Šˆ

์˜ˆ๋ฅผ ๋“ค์–ด์„œ

a = 'baaaab'
b = 'baab' 

๋Š” True๋ž€ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜ค๊ฒ ์ฃ ? ์‚ฌ์‹ค์€ False ์ธ๋ฐ,

์ด์Šˆ ํ•ด๊ฒฐ๋ฐ”๋ž๋‹ˆ๋‹ค.
๋‹จ์–ด์˜ ๊ธธ์ด๊ฐ€ ๋‹ค๋ฅด๋ฉด, False ์—์š”.

์ด์Šˆ ํ•ด๊ฒฐํ›„, ๋ฐ‘์—๋‹ค ๋‹ต๋ณ€๋‹ค์„ธ์š”.

์ƒˆ๋กœ์šด ํŒŒ์ผ ๋งŒ๋“ค ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?

๊ธฐ์กด์— ์žˆ๋Š” ํŒŒ์ผ์„ ์ˆ˜์ •ํ•˜๋Š” ๊ฒŒ ๋งž์ง€ ์•Š์„๊นŒ์š”?

git/Github ์€ source ํ˜•์ƒ๊ด€๋ฆฌ๊ฐ€ ๋˜๊ธฐ๋•Œ๋ฌธ์—, ๊ณผ๊ฑฐ ์†Œ์Šค๊ฐ€ ์‚ด์•„๋‚จ์•„ ์žˆ์–ด์š”.

git commit -m "<message>" 

์—ฌ๊ธฐ์„œ ๋งŒ ์ž˜ ์ฃผ๋ฉด, gitlog ๋“ฑ์œผ๋กœ ์ฐพ์„ ์ˆ˜ ์žˆ์–ด์š”.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.