hhomework2020's Introduction
hhomework2020's People
hhomework2020's Issues
hub.docker.com์ github๊ณผ ์ฐ๋ํด ๋์ผ์ธ์
๋ชฉ์ : Dockerfile์ด ์๋ ๊ฒฝ์ฐ ์๋ํ๋ builds๊ฐ ๊ฐ๋ฅํด์ ธ์.
- hub.docker.com์ ๋ค์ด๊ฐ์ public์ผ๋ก repoํ๋๋ฅผ ์์ฑํ ๋ค์
- ์ ๋ค์ด๊ฐ์, 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
๋ก ์์ฑํด ๋ณด๋ ๊ฒ๋ ๋ถํ์ํ ์ฝ๋๋ฅผ ์ค์ผ ์ ์๋ ๊ธฐ๋ฒ์ธ ๊ฑฐ ๊ฐ์๋ฐ, ์ด๋ป๊ฒ ์๊ฐํ๋์?
[Refactoring] for ๋ฌธ์ด ํ์ํ ๊น์?
sorted() ํจ์๋ฅผ ์ฌ์ฉํ๊ณ ์๋ ๋ฐ for
๋ฌธ์ด ํ์ํ ๊น์?
๊ทธ๋ฅ
a = sorted(str1)
ํด๋ ๋์ง ์๋์?
๋ ๋ค๋ฅธ ๋ก์ง ์ค๋ฅ
์๋ฅผ ๋ค์ด
a = "baaab"
b = "babab"
์์ ํ ๋ค๋ฅธ ๋จ์ด ์ธ๋ฐ,
์ฌ์ ์, ์ค๋ณต์ ๊ฑฐํ๋ ๋ก์ง์ด ์์ด,
True ๊ฐ์ด ๋์ค๊ฒ ์ฃ . ์ด๊ฒ์ False๋ก ๋์์ผ ํด์.
์ด์ ํด๊ฒฐํ ์ญ์ ์๋์๋ ๋ต๋ณ๋ค์ธ์.
[Refactoring] ๋ถํ์ํ ์ฝ๋๋ค.
-
์๋จ์ len() ํจ์๋ฅผ ์ฌ์ฉํ๋๋ฐ,
ํ๋จ์ a ==b ๋น๊ต๋ฅผ ์ด๋ฏธ ํด์ฃผ๊ณ ์์ด์? ํ์ํ ๋ก์ง์ธ๊ฐ์? -
print("True") ์์, ๊ตณ์ด ๋ฌธ์์ด์ ๋ง๋ค๊ธฐ ์ํ
"
ํ์ํ๊ฐ์?
"
์์ด ์ฌ์ฉํ๋๊ฒ ๋ ์ข์ง ์๋์?
๋ก์ง ์ค๋ฅ ์ด์
์๋ฅผ ๋ค์ด์
a = 'baaaab'
b = 'baab'
๋ True๋ ๊ฒฐ๊ณผ๊ฐ ๋์ค๊ฒ ์ฃ ? ์ฌ์ค์ False ์ธ๋ฐ,
์ด์ ํด๊ฒฐ๋ฐ๋๋๋ค.
๋จ์ด์ ๊ธธ์ด๊ฐ ๋ค๋ฅด๋ฉด, False ์์.
์ด์ ํด๊ฒฐํ, ๋ฐ์๋ค ๋ต๋ณ๋ค์ธ์.
์๋ก์ด ํ์ผ ๋ง๋ค ์ด์ ๊ฐ ์์๊น์?
๊ธฐ์กด์ ์๋ ํ์ผ์ ์์ ํ๋ ๊ฒ ๋ง์ง ์์๊น์?
git/Github ์ source ํ์๊ด๋ฆฌ๊ฐ ๋๊ธฐ๋๋ฌธ์, ๊ณผ๊ฑฐ ์์ค๊ฐ ์ด์๋จ์ ์์ด์.
git commit -m "<message>"
์ฌ๊ธฐ์ ๋ง ์ ์ฃผ๋ฉด, gitlog ๋ฑ์ผ๋ก ์ฐพ์ ์ ์์ด์.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.