프로그래밍

프로그래밍/Script

[javascript] 화면 리사이즈시 사이즈 확인 및 미디어쿼리 확인

화면 리사이즈시 사이즈 확인 및 미디어쿼리 확인 Typical Media Query Breakpoints https://jsfiddle.net/mill01/1jedsc76/8/ media queries - JSFiddle - Code Playground jsfiddle.net Typical Media Query Breakpoints Resize the browser window to see how the background color of this paragraph changes on different screen sizes.

프로그래밍/Python

[python] 소스경로와 실행경로가 다를때 os.chdir(). os.path와 pathlib

[python] 소스경로와 실행경로가 다를때 os.chdir() # 파이썬 컴파일 경로가 달라서 현재 폴더의 이미지를 호출하지 못할때 작업디렉토리를 변경한다. import os from pathlib import Path # src 상위 폴더를 실행폴더로 지정하려고 한다. real_path = Path(__file__).parent.parent print(real_path) #작업 디렉토리 변경 os.chdir(real_path) # 파이썬 컴파일 경로가 달라서 현재 폴더의 이미지를 호출하지 못할때 작업디렉토리를 변경한다. import os from pathlib import Path # src 상위 폴더를 실행폴더로 지정하려고 한다. real_path = Path(__file__).parent.pare..

프로그래밍/Python

[python] Sorting-Algorithms-Visualizer

Program made with Python and Pygame module for visualizing sorting algorithms Support this project by leaving a ⭐ Run: python3 src/main.py https://github.com/LucasPilla/Sorting-Algorithms-Visualizer/tree/master GitHub - LucasPilla/Sorting-Algorithms-Visualizer: Program made with Python and Pygame module for visualizing sorting algorithms Program made with Python and Pygame module for visualizing..

프로그래밍/Script

[javascript] 엔터키 입력 이벤트, KeyboardEvent keyCode

KeyboardEvent keyCode Keyboard Events The keyCode Property Press a keyboard key in the input field and display the value: The keyCode property is deprecated, use the key property instead. 조회

프로그래밍/Python

[python] Use Phone Camera with python

[python] Use Phone Camera with python https://thecleverprogrammer.com/2021/01/05/use-phone-camera-with-python/ Use Phone Camera with Python | Aman Kharwal In this article, I will walk you through how to use your phone camera with Python for computer vision. Use the Phone Camera with Python. thecleverprogrammer.com install CV : https://pypi.org/project/opencv-python/ """ https://thecleverprogramm..

프로그래밍/Python

[python] Google 지도 서비스용 Python 클라이언트

Google 지도 서비스용 Python 클라이언트 파이썬을 사용합니까? 무언가를 지오코딩하고 싶습니까? 방향을 찾고 계십니까? 아마도 방향의 행렬일까요? 이 라이브러리는 Google Maps Platform 웹 서비스를 Python 애플리케이션에 제공합니다. Google Maps Services용 Python 클라이언트는 다음 Google Maps API용 Python 클라이언트 라이브러리입니다. 길찾기 API 거리 행렬 API 고도 API 지오코딩 API 지리적 위치 API 시간대 API 도로 API 장소 API 지도 정적 API 주소 확인 API 요구 사항 파이썬 3.5 이상. Google 지도 API 키입니다. API 키 각 Google 지도 웹 서비스 요청에는 API 키 또는 클라이언트 ID가 필..

프로그래밍/Python

[Python] 현재 파일/디렉토리 위치 확인 및 변경

파이썬 컴파일 위치에 따라 import에 이슈가 발생하곤 한다. 파일 실행시 이미지가 상대경로라면 프로그램 파일 상단에 작업디렉토리 변경을 통해서 현재 파일의 이슈를 줄일 수 있다. 1.현재 파일의 이름 & 경로 import os #현재 파일 이름 print(__file__) #현재 파일 실제 경로 print(os.path.realpath(__file__)) #현재 파일 절대 경로 print(os.path.abspath(__file__)) 2.현재 파일의 디렉토리 경로 import os #현재 폴더 경로; 작업 폴더 기준 print(os.getcwd()) #현재 파일의 폴더 경로; 작업 파일 기준 print(os.path.dirname(os.path.realpath(__file__))) 3.현재 디렉토리..

홍반장水_
'프로그래밍' 카테고리의 글 목록