2021/09 56

10. CSS - SVG 를 Background-Img 로 사용하기

아이콘 SVG 검색 Material Design Icons Material Design Icons' growing icon collection allows designers and developers targeting various platforms to download icons in the format, color and size they need for any project. Loading... Sponsored by Icons8 Material Icon Sets materialdesignicons.com 배경이미지로 변환 URL-encoder for SVG yoksel.github.io background-image: url("data:image/svg+xml,%3Csvg xmlns='http:/..

05. HTML/css 2021.09.13

09. 원격 브랜치를 로컬 브랜치로 가져오기

OS Windows 10 Home 64bit 버전 1903 (OS 빌드 18362.836) Git git version 2.33.0.windows.2 원격 브랜치를 현재 로컬 브랜치로 가져오기 (브랜치명 자동) git checkout -t origin/feature/something -t : tracking 브랜치명이 자동으로 feature/something 브랜치로 생성되며 받아진다 원격 브랜치를 로컬 브랜치로 가져오기 (브랜치명 수동) git checkout -b feature/something origin/feature/something -b : branch 내가 원하는 브랜치명으로 생성하여 해당 원격브랜치를 받는다

17. Git/기초 2021.09.13

17. 자바스크립트 URL(), URLSearchParams(), encodeURIComponent()

OS Windows 10 PRO 64bit 버전 20H2 (OS 빌드 19042.867) JavaScript ES5 (2009年) ↑ new URL(location.href) var url = new URL(location.href) url.search // ?param1=value2¶m2=value2 url.searchParams // URLSearchParams() new URLSearchParams() var params = URLSearchParams(); params.set('year', 2021) // ?year=2021 params.set('month', 9) // ?year=2021&month=9 params.append('year', 2020) // ?year=2021&month=..

06. 재귀함수 (Recursive Call) - 홀수와 짝수에 따라 분기처리

재귀함수 (Recursive Call) 정수 n에 대해 n 이 홀수이면 3 * n + 1 을 하고, n 이 짝수이면 n 을 2로 나눕니다 이렇게 계속 진행해서 n 이 결국 1 이 될 때 까지 반복하고 이렇게 정수 n 을 입력받아, 위 알고리즘에 의해 1이 되는 과정을 모두 출력하는 함수를 작성하세요 public class RecursiveCall4 { public static void main(String[] args) { int num = 3; int result = EvenOddRe(num); } private static int EvenOddRe(int num) { System.out.println(num); if (num

05. 회문 (Palindrome)

회문 (Palindrome) 순서를 거꾸로 읽어도 같은 단어인 회문인지 판단하는 코드 작성 (재귀함수) 예) `LEVEL` 은 거꾸로 읽어도 `LEVEL` 이기 때문에 true, `MOTOR` 는 거꾸로 읽으면 `ROTMO` 이기 때문에 false public class Palindrome { public static void main(String[] args) { String name = "level"; char[] chars = name.toCharArray(); boolean isPalindrome = isPalindrome(chars); System.out.println(isPalindrome); } private static boolean isPalindrome(char[] name) { if ..