얕은 복사, 깊은 복사
Record 개념 얕은 복사 vs 깊은 복사 얕은 복사 얕은 복사는 아주 최소한만 복사를 한다. 값을 복사한다 하더라도, 인스턴스가 메모리에 새로 생성되지 않는다. 값 자체를 복사하는 것이 아니라 주소값을 복사하여 같은 메모리를 가리키기 때문이다. 깊은 복사 데이터 자체를 통째로 복사한다....
Record 개념 얕은 복사 vs 깊은 복사 얕은 복사 얕은 복사는 아주 최소한만 복사를 한다. 값을 복사한다 하더라도, 인스턴스가 메모리에 새로 생성되지 않는다. 값 자체를 복사하는 것이 아니라 주소값을 복사하여 같은 메모리를 가리키기 때문이다. 깊은 복사 데이터 자체를 통째로 복사한다....
Record 개념 Shell script 목차 작성시작 실행 주석 입력/출력 변수 특수문자 변수 값의 치환 배열 연산자 if switch while until for 함수 dos2unix 샘플 - 작성시작 시스템에 지금부터 셸 스크립트를 쓴다는 사실을 알려주기 위함 #!/bin/sh 실행 - $ chmod 755...
Record 개념 - 목차 [root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --list-all [root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --list-all --zone public public (active) target: default icmp-block-inversion: no interfaces: ens192 sources: services: ssh dhcpv6-client ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: [root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --get-active-zones public interfaces: ens192 [root@OWNER-WEB:/usr/lib/firewalld/services]$...
Record 개념 - 목차 Console console.log console.info console.warn console.error console.assert console.table console.dir console.time console.timeEnd console.count console.countReset console.trace
Record 개념 자료구조 목차 forEach join split reverse slice find filter map some every quiz forEach thisArg 매개변수(this)를 forEach()에 제공했기에, callback은 전달받은 this의 값을 자신의 this 값으로 사용할 수 있습니다. arr.forEach(callback(currentvalue[, index[, array]])[, thisArg]) fruits.forEach((fruit) => console.log(fruit, second), second); //...
Record 개념 자료구조 목차 forEach join split reverse slice find filter map some every quiz forEach thisArg 매개변수(this)를 forEach()에 제공했기에, callback은 전달받은 this의 값을 자신의 this 값으로 사용할 수 있습니다. arr.forEach(callback(currentvalue[, index[, array]])[, thisArg]) fruits.forEach((fruit) => console.log(fruit, second), second); join...
Record 개념 코드 푸쉬는 MS에서 만든 오픈소스로서 앱을 심사없이도(앱 스토어 릴리즈없이) 실시간 업데이트를 가능하게 해주는 모듈입니다. 리액트 네이티브에서는 네이티브 코드와 설정이 아닌 JS단의 코드와 assets(이미지, 폰트등..)의 요소들을 앱 심사없이 바로 업데이트 할 수 있습니다. 설치 appcenter-cli 설치 $ npm install...
Record 개념 라이브러리 의존성 관리 매니저이고 수많은 xcode 프로젝트 라이브러리들이 cocoapods으로 관리되어진다. 안드로이드에서의 gradle과 같은 역할을 해준다고 보면 생각하기 쉽다. ios/mac app개발시 필수적으로 널리 이용되고있다. 시작 sudo gem install cocoapods //Podfile platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'AFNetworking',...
Record 개념 - 시작 Create-react-native-app $ npm install -g create-react-native-app $ create-react-native-app 프로젝트명 $ cd 프로젝트 명 $ npm start React-native $ npm install -g react-native-cli $ react-native init 프로젝트명 $ cd 프로젝트명 $ react-native run-ios or $ react-native run-android...
Record 개념 Flex는 요소의 크기가 불분명하거나 동적인 경우에도, 각 요소를 정렬할 수 있는 효율적인 방법을 제공 Container, Items 구분 Container에는 display, flex-flow, justify-content 등의 속성을 사용할 수 있으며, Items에는 order, flex, align-self 등의 속성을 사용할 수 있습니다. 참조 https://flexboxfroggy.com/#ko http://www.flexboxdefense.com/...