Computer Science 387

linux terminal 상대 경로로 출력하기 | 아모르것다

\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ 이게 무슨 말이지;; bash 프롬프트에서 사용할 수 있는 옵션은 다음과 같다. \t 현재 시간을 HH:MM:SS 형식으로 보여준다. \d 날자를 "요일 월 일" 형식으로 보여준다. Tue Jan 23 \s 쉘의 이름을 보여준다. \w 현재 작업디렉토리를 완전경로로 보여준다. \W 현재 작업디렉토리의 이름을 보여준다. \u 현재 사용자의 사용자명 \h 호스트만 \H 호스트이름전체 \# 현재 명령의 명령 번호 \$ root이면 #, 일반사용자이면 $ \e \u \h \w : 전체 경로 출력 \a ..

Computer Science 2021.09.23

아빠랑 코딩 토크 | 그래픽스, python venv, bash shell script, 성장 방식

1. 그래픽스 - graphics 기초 Mesh Vertex Face Edge f(shape) ~= Mash Modeling Tools : AutoDesk 3DS, Max, Maya, Blender(open source) - graphics 영역 1) 애님 (Animation) - Bone (Skeletal) Pos, 회전, 크기 (R, T, S)를 아핀 공간(Affine)에 표현한다고 함. 이건 뭔가.. 위치를 계산하는데 행렬을 쓰나보다. 차이 시점 + 종점으로 주어진 공간 bone = Mroot를 root로 해서 부모, 자식 노드 관계로 bone 구성함 그리고 시간을 keyframe으로 해서 위치 계산 Quaternion = 3차원 회전 복소수를 이용해서 4차원 표현?? q1 = (x,y,z,w)으로..

Computer Science 2021.09.21

Panda3D 3D graphics using python | installation & basic tutorials | 작성 중

index what is Panda3D? showbase environment control camera load/animate model move forward so what is Panda3D? Panda3D is a 3D engine: a library of subroutines for 3D rendering and game development. The library is C++ with a set of Python bindings. Game development with Panda3D usually consists of writing a Python or C++ program that controls the Panda3D library. Panda3D was created for commerci..

Computer Science 2021.09.19

3D computer graphics introduction | CrashCourse

참고 https://www.youtube.com/watch?v=TEAtmCYYKZA index 기본 개념 3D projection Wireframe rendering orthographic projection perspective projection scanline rendering anti-aliasing painter's algorithm z-buffering(?) back-face culling flat shading gouraund shading phong shading texture mapping GPU 3D projection 3D 공간에서 점은 3개의 좌표를 갖는다. (x,y,z) 그래픽 알고리즘은 3차원 좌표를 2차원 화면에 '평평하게' 만들어 표현해야 한다. rendering 2차원 화면..

Computer Science 2021.09.18

LeetCode 209. Minimum Size Subarray Sum | python | Two pointer

https://leetcode.com/problems/minimum-size-subarray-sum/submissions/ Minimum Size Subarray Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com #타겟 넘버를 만족시키는 subarray num을 찾아라 #모두 positive array #s = 7, [3,4,2,1,3,2] #O(n)으로 해결한다면? #sliding 개념 + 모두 양수임을 활용하면 풀 수 있음 """포인터 start와 e..

IEEE 754 | 부동 소수점 표현법, single precision, biased exponent

IEEE 754 standard formats : 부동 소수점을 표현하는 표준 -1) single precision : 32bit - float -2) double precision : 64bit - double IEEE 754 - single precision의 형태 - (-1)^s * 1.bbbbb * 2^(+-E) IEEE에는 3 가지 구성요소가 있다. 1. sign bit (1bit) - 위 식에서 s를 담당 - 0이면, 양수 - 1이면, 음수 2. normalized significand/mantissa : 가수부분 (23bit) - 위 식에서 bbbb...b를 담당 - normalized라는 것은 123.45라는 수를 0.12345 * 10^3과 같은 형태로 바꾸는 것이다. - 그렇게 0.12..

Computer Science 2021.09.07

서울대학교 컴퓨터공학 세미나 1강 | 인공지능연구원 장병철 교수님 | 작성중

이 글은 서울대학교 컴퓨터공학세미나를 듣고 정리한 것으로 내용을 읽고 관심이 생기면, 이 수업을 연 서울대학교 컴퓨터공학부 사이트 컴퓨터공학세미나 | 서울대학교 컴퓨터공학부 (snu.ac.kr) 컴퓨터공학세미나 | 서울대학교 컴퓨터공학부 cse.snu.ac.kr 혹은 서울대학교 AI연구원 사이트를 방문해보아도 좋을 듯하다. 서울대학교AI연구원(AIIS) (snu.ac.kr) 2021년 2학기 서울대학교 컴퓨터공학세미나 수업은 각 대학의 인공지능대학원 센터장 / 인공지능 관련 벤처기업의 연사가 오셔서 강연을 하는 것으로 진행될 예정이라고 한다. 1. 인공지능연구원 장병탁 교수님 - AI연구원 - 인공지능의 진화 머신러닝의 진화 1. machine learning AI , 기계학습 원리, 종류, 모델 2. ..

Computer Science 2021.09.07

코드테스트 Arrays 초급 | find pivot index, minimum size Subarray sum | 코드없는 프로그래밍

기본 개념 : 슬라이딩 영상 - 코딩 테스트,초급, find pivot index - YouTube 문제 - (2) Find Pivot Index - LeetCode Find Pivot Index - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com pivot의 범위는 1에서 출발해서, len(s) - 2까지 돈다. pivot 왼쪽에 있는 숫자들의 합과 pivot 오른쪽에 있는 숫자들의 합이 같으면, pivot을 return한다. 내 풀이 - 푸는 데 한참 걸렸다...

코딩테스트 Arrays moveZeros | 코드없는 프로그래밍

코딩 테스트, 초급, moveZeros - YouTube 문제 출처 - (1) Move Zeroes - LeetCode Move Zeroes - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 내 풀이 class로 되어있어서 신기함. class Solution: def moveZeroes(self, nums): index = 0 count = 0 while True: if index == len(nums) - count: return nums else: if nu..