일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- GoogleMaps
- 랜덤넘버
- 오버라이딩
- 리액트
- TypeScript
- scrollview
- React
- Java
- JavaScript
- 자바스크립트
- 랜덤번호
- 코틀린
- 구글맵스
- array
- TextView
- stylesheet
- Kotlin
- npm
- Javscript
- RecyclerView
- 안드로이드
- nodejs
- Hook
- Linux
- button
- 스프링부트
- JS
- SpringBoot
- Android
- fragment
- Today
- Total
목록전체 글 (169)
타닥타닥 개발자의 일상
주어진 온도 배열을 다음과 같이 출력하는 함수 printForecast를 만들어라. prntForecast는 배열을 배개변수로 받고 예시 문장을 출력할수 있어야 한다. test data1: [17, 21, 23] test data2:[12, 5, -5, 0, 4] 예시 문장 [17, 21, 23] 배열은 다음과 같이 출력되어야 한다 "... 17ºC in 1 days ... 21ºC in 2 days ... 23ºC in 3 days ..." //테스트 데이터 배열 const data1 = [17, 21, 23]; const data2 = [12, 5, -5, 0, 4]; const printForecast = function (arr) { let str = ''; for (i = 0; i < arr.l..
문제) 가정용 온도계를 만드는 회사에 근무하고 있는 당신, 최근의 업무는 하루 동안의 온도를 배열로 만들고 amplitude를 계산하는 것이다. 기기 오작동이 날수도 있음을 참고하라. We work for a company building a smart home thermometer. Our most recent task is this: "Given an array of temperatures of one day, calculate the temperature amplitude. Keep in mind that sometimes there might be a sensor error" 하루 동안의 온도는 tmeperature이라는 변수에 배열로 저장되어 있다. 중간 기기 오작동으로 error가 포함되어 있..
1. 10개의 가격을 포함하는 bills이라는 배열을 만들어라 Create an array 'bills' containing all 10 test bill values const bills =[22, 295, 176, 440, 37, 105, 10, 1100, 86,52]; 2. tips와 totals이라는 빈 배열을 만들어라 Create empty arrays for the tips and the totals ('tips' and 'totals') const tips=[]; const totals=[]; 3. 가격이 50이상 혹은 300 이하면 가격의 0.15배를 팁으로 하고, 아니면 가격의 0.2배를 팁으로 하는 calcTip이라는 함수를 만들어라. bills라는 배열에 담긴 모든 가격들의 팁과 팁+..
스티븐은 팁 계산기를 만들고 있다. 팁 계산기의 규칙은 아래와 같다. 계산서 가격이 50불에서 300불 사이이면 팁이 15% 적용된다. 만약 그렇지 않다면 팁은 20% 적용된다. Steven is still building his tip calculator, using the same rules as before: Tip 15% of the bill if the bill value is between 50 and 300, and if the value is different, the tip is 20%. Test data: 125, 555 and 44 Your tasks: 1. calcTip이라는 함수를 만들어서 값을 넣으면 위의 설정에 상응하는 팁을 반환하도록 하라. Write a function 'c..
문제) 돌고래팀과 코알라팀이 3번 경기를 한다. 팀별로 3번 경기의 평균 점수가 계산된다. 오직 상대편 평균점수의 2배를 달성한 팀만 이긴 것으로 간주된다. 그렇지 않을 경우엔 어느 팀도 이길수 없다. Each team competes 3 times, and then the average of the 3 scores is calculated (so one average score per team) . A team only wins if it has at least double the average score of the other team. Otherwise, no team wins! Test data: § Data 1: Dolphins score 44, 23 and 71. Koalas score 65,..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cciE6X/btrJEMcHKTc/A289eeRHmXHufuYpqLGDX0/img.png)
시작하기 전 설정 1. index.html 파일 생성 프로젝트 폴더에 자바스크립트 코드파일(variable.js) 외에도 브라우저의 콘솔창을 통해 결과를 출력하게 해주는 index.html 파일도 생성한다. index.html 2. Use srtict 입력하기 바닐라 자바스크립트 개발시 제일 먼저 'use strict'를 선언해주는 게 좋다. 자바 스크립트의 변수 Variable 1. let ES6에 추가된 변수로, ES6는 글로벌하게 개발자들이 이용하는 자바스크립트 문법이다. 이전에는 var라는 변수를 썼지만, var에는 치명적인 단점이 있다. 바로 var는 hoisting의 성격을 가지고 있기 때문이다. hoisting :move declaration from bottom to top 어디에 선언했냐..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/HB6po/btrDGJGOz1C/E0p5b1TzrISea8MkGUJ6K1/img.png)
위의 코드를 실행하니 아래와 같은 오류가 났다. java.lang.llegalStateException 검색해보니 pom.xml 파일에서 spring-framework / spring-core / spring-test의 버전이 다르면 이런 에러가 난다고. org.springframework spring-test ${org.springframework-version} version 부분에 아래와 같은 코드를 입력하고 maven을 reload하니까 오류가 사라졌다 ${org.springframework-version} 출처: https://m.blog.naver.com/ysulshin/220934106478 junit test 안될때 에러로그/해결방법 에러로그 java.lang.IllegalStateExce..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/eo9y4g/btrwlKUyNUj/PSk8WvRMLFvnmW2HjOfOBk/img.png)
참고 사이트 https://docs.expo.dev/versions/latest/sdk/camera/ Camera - Expo Documentation Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React. docs.expo.dev 시작 프로젝트 생성문 npx react-native init CameraSample --template react-native-template-typescript 설정을 위한 설치문 npm install -g yarn npm yarn --version npm i react-native-camera npm i watc..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/wuidw/btrvKrtZgZm/oSgZ3BgFmOMGiGRzvCd4OK/img.jpg)
https://developerson.tistory.com/117 스프링 부트로 SpringBoot 회원가입, 페이징, 글작성-수정-삭제-답변, 댓글 작성 되는 게시판 페이지 기본적 세팅은 아래글 https://developerson.tistory.com/114 페이징은 아래글을 참고해서 만든 게시판이다. https://developerson.tistory.com/116 별도의 설명 없이 우선 코드만 백업할 예정. 이제 이걸 이해하.. developerson.tistory.com react와 연결시킬 스프링 프로젝트는 해당 링크에 있는 프로젝트다. react와 스프링 부트를 잘 연결시키기 위해서는 sts를 통해서 해당 프로젝트의 서버를 미리 켜준다. 또한 스프링 부트 프로젝트의 BbsDto 부분에 @Js..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bkUMk3/btrvUCtZWff/ftmKoCMoBqbbBiU0y7Sqk0/img.png)
builderX를 이용하면 별다른 코드를 작성하지 않고 쉽게 화면의 레이아웃을 만들수 있다. https://builderx.io/ BuilderX BuilderX is a browser based screen design tool that codes React Native & React for you builderx.io 구글 아이디만 있으면 편하게 사용 가능하다. new project를 클릭하면 새로운 레이아웃을 만들수 있다. Device로 OS를 설정하고 화면의 크기를 설정하는 기초 설정을 먼저해준다. 그다음 본인이 원하는 소스를 추가해 화면을 구성하면 된다. 코드를 보기 위해서는 우측 상단의 CODE를 클릭하면 된다. CODE를 클릭하면 Download Component 버튼이 보이는데 이를 클릭...