전체 글
-
Python Microsoft Playwright컴퓨터/파이썬 2020. 8. 16. 17:05
Playwright microsoft/playwright-python Python version of the Playwright testing and automation library - microsoft/playwright-python github.com 소개 : playwright는 원래 JS 버전만 있었는데, python버전도 출시가 되었다. playwright는 chromium, firefox, webkit 오토메이션 툴이다. (macro) (주로 cross-browser 테스트로 많이 쓰이는 듯) 특징 기능 : action 실행 전 element auto-wait (ex. 지정한 HTML 요소가 나오면 클릭) 네트워크 요청받기 / 보내기 모바일 디바이스, 권한, 위치 에뮬레이션 shadow-pi..
-
JS Lodash 튜토리얼컴퓨터/HTML & JS & TS 2020. 8. 15. 10:25
Lodash Lodash _.defaults({ 'a': 1 }, { 'a': 3, 'b': 2 });_.partition([1, 2, 3, 4], n => n % 2);DownloadLodash is released under the MIT license & supports modern environments. Review the build differences & pick one that’s right for you.InstallationIn lodash.com 0. 소개 JQuery처럼 자바스크립트 유틸리티 라이브러리 중 하나인데, _(underscore) 라이브러리 파생 React 프로젝트에서도 많이 쓰이며, 요즘 인기가 제일 많다. 1. 설치법 HTML 스크립트 부분에 아래를 추가하고, npm으..
-
파이썬 정렬 알고리즘 모음 + 속도 테스트컴퓨터/파이썬 2020. 8. 10. 16:34
15개 정렬 알고리즘 소개 0. 정렬 알고리즘 속도 테스트 코드 big-O-calculator 이용 @설치 링크 import bisect import heapq import inspect from random import randint, shuffle from statistics import mean from timeit import default_timer, repeat import matplotlib.pyplot as plt from bigO import BigO from win10toast import ToastNotifier # timeit.repeat 이용 def runAlgorithm(algorithm, array, timeResults): setup_code = f"from __main__ ..
-
파이썬 OpenCV 이미지 차이 구하기컴퓨터/파이썬 2020. 8. 6. 17:49
OpenCV OpenCV About the author:Pau Rodríguez is a research scientist at Element AI, Montreal. He earned his Ph.D. opencv.org 할 것 이미지 차이를 구해서 빨간색으로 칠하기 1. OpenCV 설치 pip install opencv-python 2. 이미지 설정 imageA = 원본, imageB = 비교 대상, imageC = 원본 복사 grayA = imageA를 gray scale, grayB = imageB를 gray scale cvtColor 문서 import cv2 from skimage.measure import compare_ssim imageA = cv2.imread("D:\DEV\Code\Py..
-
C/C++ Entity Component System (Flecs)컴퓨터/C & C++ 2020. 8. 4. 19:46
Flecs 소개 Flecs는 C89 / C99 / C++11를 위한 빠르고, 가벼운 Entity Component System(ECS) 빌드 툴이다. 아래는 foot-print 목록이다. Blazing fast iteration speeds with direct access to raw C arrays across multiple components Built-in support for entity hierarchies, prefabs, nested prefabs and prefab variants An efficient lock-free architecture allows for modifying entities across multiple threads Expressive entity queries ..
-
파이썬 Smooth Sort (부드러운 정렬 알고리즘)컴퓨터/파이썬 2020. 8. 3. 13:12
Smooth Sort 소개 : 부드러운 정렬은 길 찾기로 유명한 데이크스트라분이 1981년에 발표한 정렬 알고리즘이다. HeapSort의 변형 중 하나이며, in-place, not stable 시간 복잡도는 최고 : O($n$) = (대부분 정렬된 상태일 경우) 평균 : O($nlogn$), 최악 : O($nlogn$) 공간 복잡도는 총 O($n$), 보조(O($1$)) 특이한 점은 Leonardo number라는 수학 개념을 Heap Sort에 적용시킨 점이다. 1. Leonardo Number 피보나치 수열과 비슷한데, 다음과 같이 진행된다. $1, 1, 3, 5, 9, 15, 25, 41, 67, 109, 177, 287, 465, 753, 1219, 1973, 3193, 5167, 8361 ....
-
파이썬 win10toast 윈도우 알림 만들기컴퓨터/파이썬 2020. 8. 2. 14:59
win10toast 1. pip 설치 pip install win10toast pypiwin32, setuptools가 부가적으로 설치됨 2. Toast 알림 만들기 이 라이브러리에는 2가지 종류의 알림이 있다. 1. 기본 toast 기본 알림은, 제목, 내용, 지속 시간, 아이콘 경로를 설정할 수 있다. 2. Threaded toast 기본 알림 + threaded=True란 파라미터를 넘겨주면 while toaster.notification_active(): 로 알림이 작업이 끝나면 사라진다. 3. 예제) Bubble Sort 알람 from win10toast import ToastNotifier from random import randint def bubbleSort(array): n = len(..
-
Windows Terminal 테마, 설정컴퓨터/소프트웨어 2020. 8. 2. 13:09
Windows Terminal 1. (옵션) Powershell 최신 버전 설치 https://github.com/PowerShell/PowerShell/releases Releases · PowerShell/PowerShell PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub. github.com 2. 모듈 설치 Install-Module posh-git -Scope CurrentUser -Force Install-Module oh-my-posh -Scope CurrentUser -Force posh-git과 oh-my-posh를 설치한다. (거의 zsh f..