본문 바로가기

프로그래밍4

Visual Studio Code 단축키 생성 Console.log('') Console.log 입력할 때 마다 답답해서, 단축키 생성방법이 있나 검색해봤음 바로 발견!@! 위 방법을 사용하면 콘솔로그 뿐 아니라 자주사용되는 모든 문구들을 추가할 수 있다. File > Preferences > Keyboard Shortcuts 오른쪽 위에 아이콘 클릭 (아래 사진 참조) keybindings.json 파일이 열리면 대괄호 안에 아래 내용 추가 { "key": "ctrl+shift+l", "command": "editor.action.insertSnippet", "when": "editorTextFocus", "args": { "snippet": "console.log('${TM_SELECTED_TEXT}$1')$2;" } } 출처:https://stackoverflow.com/.. 2023. 2. 3.
[html css] 사진 위에 텍스트 올리기 [반응형] 사진 위에 글자를 올리려면 position: absolute; 를 사용해야한다. .application-box img { width:100%; } .application-box .application-desc-container { position: absolute; Top : 30px; left: auto; margin-left: 25px; /* 여백 비율 조정 */ } 2022. 11. 17.
오늘날짜 한국일보 지면 바로열기 : 윈도우에서 cmd (.bat) 활용 요즘 인터넷으로 지면신문보는 방법이 없나 찾다가 한국일보에서 지면신문을 무료로 볼 수 있다고 하여 보던 중, 매일 홈페이지 통해서 들어가는게 번거로워서 방법을 찾았다. 이야기는 두괄식으로 진행하겠다 결론 : bat 파일 구성, 이 파일의 작동방식 이 방법을 찾게 된 이유, 무엇이 불편했는지 해결방법 -> url 변경 Bat 파일 구성 set date=%date% set date=%date:-=% start /max https://m.hankookilbo.com/paoin/all?SearchDate=%date% date는 오늘날짜를 yyyy-mm-dd 형식으로 불러온다 url에 넣을때는 - 문자를 제거해야한다. 2번째 명령어가 그 역할을 한다 [ 문자열 치환하기 ] - 치환 set str=%str:-=a%.. 2022. 11. 15.
Buffer 버퍼의 역할 ● 프로그램 지연 방지 Stream Buffering Buffering is the process of temporarily storing data in main memory that’s passing between a process and a device or file. Buffering improves the throughput of I/O operations, which often have high latencies. Similarly, when a program requests to write to block-oriented devices like disks, the driver can cache the data in memory until it has accumulated enoug.. 2022. 10. 11.