function menuToggle(currMenu) {
// if (document.all) {
// obj = eval("document.all." + currMenu )
// if(obj==null)  return true;

// thisMenu = eval("document.all." + currMenu + ".style")
// if (thisMenu.display == "block") {
// thisMenu.display = "none";
// } else {
// thisMenu.display = "block";
// if(currMenu.substring(0,4)=='menu') {
// if(oldMenu1!=null && oldMenu1!=thisMenu) 
// oldMenu1.display = "none";
// oldMenu1 = thisMenu;
// } else if(currMenu.substring(0,5)=='smenu') {
// if(oldMenu2!=null && oldMenu2!=thisMenu) 
// oldMenu2.display = "none";
// oldMenu2 = thisMenu;
// }
// }
// return false;
// } else {
// return true;
// }
var menu = document.querySelector('#' + currMenu);
if(menu==null)  return true;
//console.log('menu:', menu);
if (menu.style.display == "") {
  menu.style.display = "none";
} else {
  menu.style.display = "";
}
return true;
}

https://stackoverflow.com/questions/55165303/how-to-hide-dropdown-menu-when-clicking-on-menu-link-with-vanilla-js


// null check (spring)
if (!StringUtils.isEmpty(orderDate)) {

...

}


git gui diff 창에서

우클릭 > Options

Additional DIff Paramters: 항목에 아래 입력

--ignore-space-at-eol -b -w --ignore-blank-lines 

[SAVE] 클릭


MINGW64

# 한글 설정
Options > Text
* Locale: ko_KR
* Character set : eucKR (Korean)

 

https://gabii.tistory.com/entry/Git-Git-Bash-%ED%95%9C%EA%B8%80-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0


if [ "$d"   -eq 8  ] ||  [ "$d"   -eq 14]   # ERROR

if [ "$d"   -eq 8  ] ||  [ "$d"   -eq 14 ]   # SUCCESS

https://jootc.com/p/201812082325



bash mysql

카테고리 없음 2021. 6. 30. 10:52

mysql -uuserid -ppassword -h 127.0.0.1 -P 3306 dbschema << END

SELECT NOW()
;

END


- git bash

- mysql server (windows)

- 윈도 환경변수 path 에 c:\program filws\...\mysqlserver\bin 추가


find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u


bash, while

카테고리 없음 2021. 6. 24. 14:18

# local pc files backup
echo " local pc files backup ..."
while true
do
        date "+%Y-%m-%d %H:%M:%S"

        d=$(date "+%H")
        echo  d is $d
        if [ "$d" -eq 14  ];then
                echo 'Dbeaver script Copy start =============================================='  ;

                cp /cygdrive/C/Users/hongkildong/AppData/Roaming/DBeaverData/workspace6/General/Scripts/* /cygdrive/d/backup-dbeaver-script

                echo 'Dbeaver script Copy end =============================================='  ;
        fi

        sleep 3600
done