프로그램 308

KR ip Zone

가끔 우리나라에서 접속하는 ip 인지를 체크해야 할때가 있습니다. 클라우드 api가 아래와 같이 제공 됩니다. jQuery.ajax({ url: 'https://get.geojs.io/v1/ip/geo.js', success: function(data){ console.log(JSON.parse(data.substring(6, data.length - 2)).country_code) } }) 아래는 KRNIC 에서 공개하는 Korea IP Zone 입니다. https://xn--3e0bx5euxnjje69i70af08bea817g.xn--3e0b707e/jsp/statboard/IPAS/ovrse/natal/IPaddrBandCurrent.jsp?nationCode1=KR 한국인터넷정보센터(KRNIC) ..

프로그램/script 2024.03.25

netlify.com - webpage auto publishing

netlify.com저에게는 조금 생소하지만, 비디오 가이드를 보고 바로 신청하여 나만의 사이트도 뚝딱.웹개발자 또는 누구나 손쉽게 자신만의 웹사이트를 만듭니다.흔히 하는말 대박! 여러가지 사이트와 연동이 가능합니다.github repository를 간단히 publish 하였습니다... 각 브랜치 선택 가능합니다.github contents update 되면 자동으로 변경 반영 됩니다...이런 ... 대단한 툴이 있다니.이제 홈페이지... 없다고 하지 마세요, 간단히 ... 무료로... 훌륭히... 만들수 있습니다. Site : https://app.netlify.com/Simple guide : https://www.youtube.com/watch?v=bjVUqvcCnxM&t=105sMy Site : ..

프로그램/web 2019.02.09

run gui app in docker container

오랜만의 포스팅입니다.근래들어 python 개발에 docker를 이용하려고 하고 있습니다. 이럴경우 매우 편리한데, 가끔 그래픽출력을 보고 싶을때가 있습니다.이럴때는 아래의 방법을 따라가면 해결책이 있더군요.해결책: https://sourabhbajaj.com/blog/2017/02/07/gui-applications-docker-mac/#install-xquartz docker container 에서 print 만한다면... 그래픽화면출력이 거의 필요없다.마약. python matplot package를 이용하여 그래프를 그린후 출력이 필요하다면 아래의 절차를 이용하여 docker container의 그래픽 출력을 나의맥(또는 윈도우)로 볼수 있다.(XWindows Server를 호스트에 설치후 클라이..

프로그램 2018.12.21

javascript jQuery popup, lightbox - magnific popup

매우 좋은 팝업 플러그인 http://dimsemenov.com/plugins/magnific-popup/ Magnific Popup is a responsive lightbox & dialog script with focus on performance and providing best experience for user with any device (for jQuery or Zepto.js).Documentation · GitHub · WordPress plugin · Build tool · How it was made /**youtube video popup**/ $('.modal-video').magnificPopup({ type: 'iframe' }); $(document).ready(functi..

프로그램/script 2018.04.17

펌: 2015/10/28/ES6-compare-ES5/ 기존에 익숙하게 사용하던 ES5 Javascript 와 ES6 비교

가끔 require 나 import 가 언제부터 쓰이기 시작했는지가 궁금한 사람이라면....아래 블로그를 참조해보세요... 출처 : http://lainfox.github.io/dev/2015/10/28/ES6-compare-ES5/ 일단 허락없이 아래 카피함...기존에 익숙하게 사용하던 ES5 Javascript 와 ES6 비교Oct 28, 2015 1 minute read이 문서는 지속적으로 업데이트 될 예정입니다.2015년 6월 ES6 최종 스팩이 승인되었습니다. 크롬과 파이어폭스에서는 쉽게 ES6 을 사용할 수 있지만 다른 브라우저는 babel, traceur, es6-shim등을 이용해야 합니다. (추후 업데이트)변수 선언 var vs letES6 에서 사용하는 변수 선언. ES5 에서 사용하던..

프로그램/script 2018.02.05

javascript : Array.prototype.slice and splice

Array.prototype.slice and splice 자주 안써서 햇갈릴수 있는 함수.... ^^ slice : The slice() method returns a shallow copy of a portion of an array into a new array object selected from begin to end (end not included). The original array will not be modified. splice : The splice() method changes the contents of an array by removing existing elements and/or adding new elements original array was modified...----..

프로그램/script 2018.01.25