// 1. 문자결합 (string concatenation)console.log('my' + 'ssun');console.log('my' + 2);console.log(`string literals : 1 + 2 = ${1 + 2}`);// ctrl + z / ctrl + shift + z : Undo/Redoconsole.log('jisung\'s room');console.log("jisung's \n room");console.log("jisung's \t room"); // \특수문자 \n 줄바꿈 \t 탭 - escape// 2. 숫자연사자 ( numberic operators)console.log(1+1);// 3.증감연산자let cnt = 2;let preincrement = cnt++;..
// 1. 한줄주석/* 2.여러줄주석 */ // => shfit + alt + a// 3. 변수(variable) var, let, const// 3-1 varvar name='ssun';//var name = document.getElementById('wrap');console.log(name);var name = 'park';console.log(name)// var 한번 선언된 변수를 다시 선언할수 있음// 3-2 letlet name1;console.log(name1);name1 = 'ssss';console.log(name1);// let 한번 선언된 변수를 다시 선언할수 없을 대신 재선언 가능// 3-3 constconst name2='jquery';console.log(n..
Git을 사용하다 보면 Remote URL이 변경되는 경우가 종종 발생합니다. 이때 해결하는 간단 팁 입니다. git repository 이름 : javascriptNjquery.gitgit remote set-url origin https://ssun@github.com/minbatter/javascriptNjquery.gitmaster or main - 제품으로 출시 되는 브랜치Develop - 다음 출시 버전을 개발하는 브랜치Feature(특징) - 기능을 개발하는 브랜치Release(풀어주다) - 이번 출시 버전을 준비하는 브랜치Hotfix - 출시 버전에서 발생한 버그를 수정하는 브랜치$ git config --global user.name "이름"$ git config --global us..
엑셀 시트에서 셀을 선택하고 실행하면 셀이 자동으로 합처지는 초간단 VB 코드입니다. Sub testCellMerge() Dim rStart As Range Dim rend As Range Dim index As Integer Application.DisplayAlerts = False Set rStart = Selection.Cells(1) For index = 1 To Selection.Cells.Count If Selection.Cells(index) Selection.Cells(index + 1) Then Set rend = Selection.Cells(index) Range(rStart, rend..
초보자도 쉽게 따라 할 수 있는 VBA 코드로 XML 파일 데이터를 가져 오는 샘플 코드 입니다.샘플코드를 보고 여려가지로 응용해 보세요 Sub xmlOpen_Click() Dim fd As Office.FileDialog Set fd = Application.FileDialog(msoFileDialogFilePicker) With fd .Filters.Clear .Title = "Select a XML File" .Filters.Add "XML File", "*.xml", 1 .AllowMultiSelect = False If .Show = True Then..
이미지 편집 프로그램 없이 여러 이미지를 하나로 합쳐야 할 때,파이썬의 ttk 라이브러리를 사용하면 간단하게 해결할 수 있습니다.ttk는 파이썬의 표준 GUI 라이브러리인 tkinter를 확장하여 현대적인 디자인의 인터페이스를 제공하며,초보자도 쉽게 사용할 수 있습니다. 아래 샘플코드는 ttk를 이용하여 이미지 합치기 프로그램을 만드는 소스코드 입니다. 아래 코드를 통해 ttk의 기본 활용법을 익히고, 나만의 프로그램을 만들어 보세요. import osimport tkinter.ttk as ttkimport tkinter.messagebox as msgboxfrom tkinter import * # __all__from tkinter import filedialogfrom PIL import Image ..