파이썬에서 리스트 값들의 총합계 구하기
Python에서 리스트 값들의 총합계 구하기 ''' icecream_inventory : {'메로나': [300, 20], '비비빅': [400, 30], '죠스바': [250, 100], '월드콘': [500, 70]} 아이스크립들의 가격의 총합계를 출력하세요 [출력 예] 총액 : 0000 원 …
Python에서 리스트 값들의 총합계 구하기 ''' icecream_inventory : {'메로나': [300, 20], '비비빅': [400, 30], '죠스바': [250, 100], '월드콘': [500, 70]} 아이스크립들의 가격의 총합계를 출력하세요 [출력 예] 총액 : 0000 원 …
깃 푸시 저장소 추가하는 방법 $ vi .git/config … [remote "origin"] url = git@github.com:username/repository.git fetch = +refs/heads/*:refs/remotes/origin/* pushurl = git@gitlab.com:username/repository.git Using Command Pull multiple: git fetch –all View existing remotes: …
PHP에서 사용자 위치 구하는 방법 geocode: $geocode_stats = file_get_contents("http://maps.googleapis.com/maps/api/geocode/json?address=$country_name&sensor=false"); $output_deals = json_decode($geocode_stats); $latLng = $output_deals->results[0]->geometry->location; echo $lat = $latLng->lat; echo $lng = $latLng->lng; ipinfo: function ip_details($IPaddress) { $json = file_get_contents("http://ipinfo.io/{$IPaddress}"); …
macOS에서 SVG 파일을 PNG로 변경하기 Installation brew install librsvg Usage SVG는 벡터 포맷인 만큼 정해진 픽셀 사이즈가 없기 때문에 기준 크기를 지정해줘야 한다. rsvg-convert -h 512 OLD_IMAGE.svg > NEW_IMAGE.png Post …
리액트에서 네이버 오픈API 사용하기 오픈 API 등록 Application > 애플리케이션 등록 애플리케이션 이름: 영화검색사이트 사용 API: 검색 비로그인 오픈 API: WEB 설정 http://127.0.0.1:3000 오픈 API 사용 Documents > 서비스 API …
PHP에서 IP주소 차단하기 특정 IP 를 제외한 나머지 IP 차단 $ip = $_SERVER['REMOTE_ADDR']; $allow = '000.000.00.000'; if($ip != $allow) { exit; } 특정 IP 들을 제외한 나머지 IP 차단 $ip …
jQuery fadein fadeout 예제 fadeIn $(".example") .css({ opacity: "0", visibility: "hidden" }) .stop() .animate( { opacity: 1, }, { duration: 300, start: function () { $(".example").css("visibility", "visible"); }, done: function …
CSS에서 하드웨어 가속 시키는 방법 transform: translateZ(0); 선언은 최신 데스크톱 및 모바일 브라우저에서 GPU 가속을 트리거합니다. .cube { -webkit-transform: translateZ(0); -moz-transform: translateZ(0); -ms-transform: translateZ(0); -o-transform: translateZ(0); transform: translateZ(0); /* Other …
엑셀에서 네트워크 트래픽 분석하기 네트워크 트래픽 용량 전송량은 비트(b) 대신 바이트(B)를 사용하는 것이 일반적이며, 대역폭은 ‘bit per second’ 초당 전송량으로 표현하는데 ‘bps’ 또는 ‘b/s’로 표기한다. 1일 전송량(Byte) = 1 bps …
자바스크립트 프린트 윈도우 예제 var printWindow = window.open('', '프린트 윈도우 예제', 'height=900,width=800'); printWindow.addEventListener("load", function() { alert("loaded"); }, false); printWindow.document.write('<html><head><title>프린트 윈도우 예제</title>'); printWindow.document.write( [ '<link rel="stylesheet" type="text/css" media="all" href="print.css" />', ].join('') …