전체 글

전체 글

    비율 유지 이미지 object-fit

    가로·세로 비율은 유지한 채로 주어진 영역에 여백이 없도록 맞춤(확대·축소) object-fit :cover; fill; contain; none; scale-down; object_position : top; bottom;

    Sublime Text3 indent

    Preferences -> Key bindings -> User { "keys": ["ctrl+alt+]"], "command": "reindent" }{ "keys": ["단축키"], "command": "reindent" }

    Input Type=File 제한

    function filecheck(obj){ pathpoint = obj.value.lastIndexOf('.'); filepoint = obj.value.substring(pathpoint+1,obj.length); filetype = filepoint.toLowerCase(); if(filetype=='png' || filetype=='jpg' || filetype=='gif') { // 허용한 확장자일 경우 } else { alert('jpg, gif, png 파일만 첨부할 수 있습니다'); parentObj = obj.parentNode node = parentObj.replaceChild(obj.cloneNode(true),obj); return false; } }

    Sublime Text3 SFTP

    [SFTP] 1. Ctrl + ` 2. https://packagecontrol.io/installation 버전 맞게 복사 3. Ctrl + Shift + P -> install package -> Enter -> SFTP -> Enter 4. sftp-config.json 수정후 사용

    Linux 명령어

    [비밀번호 변경] passwd [파일위치 찾기] find / -name 파일명 [패킷뜨기] tcpdump -i eth0 -w 파일명 [리부트] reboot [프로세스 찾기] ps -ef | grep java