본문 바로가기

반응형

분류 전체보기

(127)
[Python] Visual Studio Code 에서 파이썬 1. 네모 선택하여 검색에 "Python" 2. Python 선택하고 install 3. 비주얼스튜디오 Restart
[Ruby on Rails] 로또 번호 추첨 4 1. 로또 사이트와 비슷하게 만들어본다. www.dhlottery.co.kr/gameResult.do?method=byWin&wiselog=C_A_1_1 로또6/45 - 회차별 당첨번호 953회 당첨결과 (2021년 03월 06일 추첨) 당첨번호 7 9 22 27 37 42 953회 순위별 등위별 총 당첨금액, 당첨게임 수, 1게임당 당첨금액, 당첨기준, 비고 안내 순위 등위별 총 당첨금액 당첨게임 수 1게임당 www.dhlottery.co.kr 2. 실제 로또 공식홈페이지 html 구조이다. index.html.erb 에 붙혀넣는다. Alt + Shift + p 누르면 코드정렬된다. 7 9 22 27 37 42 3. 랜덤 숫자 가져 뿌리기 index.html.erb 4. 로또 공식사이트의 css를 복사..
[Ruby on Rails] 로또 번호 추첨 3 1. lotto_controller.rb에 작성한다. class LottoController < ApplicationController def index @byunsu = 100 end end 2. index.html.erb 에 작성한다. 3. 사이트 새로고침하면 100이라고 표시된다. 4. 100 대신에 로또 1~45의 배열 숫자를 넣어줘야하기 때문에 넣는방법이다. (ruby array of numbers) class LottoController < ApplicationController def index @byunsu = [*1..45] end end 5. 랜덤으로 숫자 6개를 뽑아야한다. (ruby choose number in array) @byunsu.sample(6) 를 추가한다. lotto_..
[Java] overloading 오버로딩 package org.opentutorials.javatutorials.overloading; class Calculator { int num1, num2; int num3 = 0; public void setOprands(int num1, int num2) { System.out.println("setOprands 2"); this.num1 = num1; this.num2 = num2; } public void setOprands(int num1, int num2, int num3) { System.out.println("setOprands 3"); this.num1 = num1; this.num2 = num2; this.num3 = num3; } public void sum() { System.out..
[Ruby on Rails] 로또 번호 추첨 2 1. app > views 는 lotto_controller.rb 와 연결된 view 이다. 2. lotto 폴더안에 오른쪽마우스 새로만들기에서 파일을 만들어준다. 3. index.html.erb 에 h1 태그를 작성한다. 4. lotto_controller.rb 에 def html 이름end작성 5. router 설정하기 6. Rails 가이드에 Route 를 참조한다. guides.rubyonrails.org/routing.html Rails Routing from the Outside In — Ruby on Rails Guides Rails Routing from the Outside InThis guide covers the user-facing features of Rails routing.Af..
[Ruby on Rails] 로또 번호 추첨 1 1. Ruby on Rails 를 사용할 것인데, 구름 IDE 에서 개발 할 것이다. ide.goorm.io/ 구름IDE - 설치가 필요없는 통합개발환경 서비스 구름IDE는 언제 어디서나 사용 가능한 클라우드 통합개발환경(Integrated Development Environment IDE)을 제공합니다. 웹브라우저만 있으면 코딩, 디버그, 컴파일, 배포 등 개발에 관련된 모든 작업을 클라 ide.goorm.io 2. 컨테이너 생성하여 작성하고 생성하기 선택 3. 구름IDE의 터미널에 "rails g controller + 컨트롤러 이름" 작성 4. app > controllers 에 진입하면 lotto_controller.rb 생성되었다. 출처 : 조코딩
[ajax, API] 카카오 개발자 API로 책 검색하기 2 1. title과 thumbnail 값 가져온다. $.ajax({ method: "GET", url: "https://dapi.kakao.com/v3/search/book?target=title", data: { query: "미움받을 용기" }, headers: { Authorization: "KakaoAK {REST API}" } }) .done(function (msg) { console.log(msg.documents[0].title); console.log(msg.documents[0].thumbnail); }); 2. 구글에 "jquery add html" 검색. 공식 사이트 api.jquery.com/append/ .append() | jQuery API Documentation Descri..
[ajax, API] 카카오 개발자 API로 책 검색하기 1 1. vscode 에 index.html 만들어 준다. 2. ! 입력한다 3. lang="ko" 로 변경하고, title 태그 사이도 이름 바꾼다. 3. body 태그 안에 h1 태그 넣고 사이트라고 작성한다 4. index.html 에 오른쪽마우스 클릭 - Reveal in File Explorer 선택 5. index 실행 6. 표시된다. 7. 구글에 "jQuery CDN" 검색 code.jquery.com/ jQuery CDN The integrity and crossorigin attributes are used for Subresource Integrity (SRI) checking. This allows browsers to ensure that resources hosted on third-..
[CSS] 부트스트랩, materialize, semantic-ui 사이트 1. 부트스트랩 bootstrapk.com/ 부트스트랩 · 세상에서 가장 인기있는 모바일 우선이며, 반응형인 프론트엔드 프레임워크. 프리프로세서 부트스트랩은 평범한 CSS 로 제공합니다만, 그것의 소스코드는 2개의 인기있는 CSS 프리프로세서인 Less 와 Sass 를 사용합니다. 신속하게 프리컴파일된 CSS 로 시작하거나 소스를 빌드 bootstrapk.com getbootstrap.com/docs/5.0/getting-started/introduction/ Introduction Get started with Bootstrap, the world’s most popular framework for building responsive, mobile-first sites, with jsDelivr and..
[Eclipse] Mac에서 이클립스 콘솔 글자 크기 변경 상단에 [Eclipse] - [Preferences] - [General] - [Appearance] - [Colors and Fonts] - [Basic] - [Text Font] Edit 선택하여 Size 변경

반응형