전체 글 210

[Android/Git] GitKraken 이용법 - commit/push/merge/branch

1. 내용이 변경되면 빨간 동그라미가 생김  2. git add . 작업 3. commit!   그리고 Push 누르기 4. 현재 나는 dahee branch에서 commit, push 한거임. 이제 master 입장이 되어서 merge를 할거다.master로 checkout 하고싶으면 master를 더블클릭! 짠! 5. merge dahee into master 클릭 && push 버튼도 누르기!!! (master인 상태에서)  6. merge 후 dahee로 checkout 한 상태.다시 dahee branch에서 편하게 작업 가능

[Android] Retrofit/Okhttp jsonplaceholder json 사용 + gson

gson으로 데이터를 개별적으로 갖고오고 싶은 경우예를 들어{    "isExist": false,    "data": [        {            "isbn": "8990245575 9788990245571",            "book_name": "긍정탐구(AI) 조직변화(사례위주의 알기 쉬운 실무 AI 가이드 북)",            "author": [                "Frank J Barrett",                "Ronald E Fry"            ],            "contents": "『긍정탐구(AI) 조직변화』는 조직학습과 변화에 대한 간단하면서도 파격적인 철학을 제시한다. 즉, 인간 시스템의 협력역량에 생명력을 불어넣는 모든 ..

[멋사7기] vscode -> github에 올리기 (wordcount project)

==vs code terminal에서 진행== 1. manage.py 있는 폴더에 .gitignore 파일 만들기 2. 그리고 무시해도되는 파일들을 쭉 쓸건데 https://www.gitignore.io/ 이 사이트에서 다 가져올 수 있음ㅎㅎ django -> create! django를 github에 올릴 때 필요없는 것들 쭉 정리해놓은거~ 3. 이정도만 .gitignore에 복붙~! # Created by https://www.gitignore.io/api/django # Edit at https://www.gitignore.io/?templates=django ### Django ### *.log *.pot *.pyc __pycache__/ local_settings.py db.sqlite3 med..

[멋사7기] 2주차 - 2. wordcount 실습 (week2 폴더)

- home.html에서 url 표현 About {%url 'name' %} - result.html텍스트는 {{total}} 로 구성되어 있습니다. 다시 home으로 입력한 텍스트 {{full}} 단어 카운트 {% for word, count in dictionary %} {{word}} : {{count}} {% endfor %} {{total}} {% for %}{% endfor %} - views.pydef result(request): text = request.GET['fulltext'] words = text.split() word_dictionary = {} for word in words: if word in word_dictionary: word_dictionary[word] += 1 ..

[Python] Repl.it - if/else/for문/print()

https://snakify.org/lessons/if_then_else_conditions/ - if/else x = int(input())if x > 0:    print(x)else:    print(-x)  - abs() : 절댓값 x = int(input())print(abs(x)) // 절댓값. input : 10 / output : 10input : -10 / output : 10 - bool print(bool(-10))    # Trueprint(bool(0))      # False - zero is the only false numberprint(bool(10))     # Trueprint(bool(''))     # False - empty string is the only fal..

Study/Python 2019.01.16

[Python] Repl.It - 입출력/나누기/올림/내림/math module

- string끼리 출력 : + # Read a string:a = input()# Print a string:print("Hello, " + a + "!") - string + int 출력 : , # Read an integer:a = int(input())# Print a value:print("The next number for the number ", a, " is ", (a + 1))print("The previous number for the number ", a, " is ", (a - 1)) - 정수 나누기 종류 print(63 / 5) : 소수점까지 나눈다print(63 // 5) : 정수까지만 나눈다print(63 % 5) : 나머지 계산 12.6123 - float# int는 무조건 ..

Study/Python 2019.01.16

[멋사7기] 1주차 - 2. Hello World 이론 / 3. Hello World 실습

1. Django는 어떻게 작동할까?파일 - 폴더 간의 티키타카! 2. manage.py로 파이썬 파일을 가지고 서버를 작동시킨다! 3. App : 프로젝트의 구성 단위 4. 프로젝트와 앱 요약 : 9분30초정도~11분 - 현재 이해못함 가상환경 켜고 - 프로젝트 만들기 - 앱 만들기 - 앱 안에 폴더 만들기 서버 끄기 : ctrl : c db.sqllite3 : database 다루는 파일 app이랑 project 사이의 티키타카가 이루어질 예정!근데 progect는 아직 app의 존재를 몰라 -> project의 setting.py에 'myapp.apps.MyappConfig', 그러면 이제 서로의 존재를 안다. 연결되었다. 언제 어떤 상황에서 데이터를 처리할지 알려주는 파일 -> app>views...

[멋사7기] 1주차 - 1. 기본환경 셋팅

1. bash로 바꾸는 법vs code에서- 컨트롤 + shift + p : select default 어쩌구~ git bash 클릭하면 터미널에 bash로 됨 (git bash가 깔려있어야 함)- 나는 + 버튼 눌러도 됐다.- 아니면 폴더 안에서 git bash here 누르고 code . 이거 쳐도 된다 그랬다. 2. 장고 uninstallpip uninstall django 3. 특정 버전의 장고 설치하기 pip install django==2.1.3 4. 가상환경이란? 컴터한테 나는 여기서만 놀거야! 라고 말하는 것!

출처: https://mingos-habitat.tistory.com/34 [밍고의서식지:티스토리]