- connect to media_dev:
$ ssh -i ~/Downloads/blend_keypair.pem [email protected] - clean yarn cache:
$ yarn cache clean - check connected android device:
$ adb devices - build & run RN android on release version:
$ react-native run-android --variant=release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const obj = { | |
| a: {id: 'aa', name: 'aaa', age: 1}, | |
| b: {id: 'bb', name: 'bbb', age: 2}, | |
| c: {id: 'cc', name: 'ccc', age: 3}, | |
| } | |
| // get object except 'age' property | |
| const exceptAge = ({ age, ...rest }) => rest; | |
| R.map(exceptAge, obj); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var React = require('react-native'); | |
| var { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, | |
| View, | |
| Easing, | |
| Animated, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function goToMostPointedAnswerInGithubIssue() { | |
| const pointsWithIndex = []; | |
| const gEmojis = document.querySelectorAll('g-emoji'); | |
| gEmojis.forEach((gEmoji, index) => { | |
| // find +1 point emoji elements | |
| if (gEmoji.getAttribute('alias') === '+1') { | |
| const splitedHtml = gEmoji.parentElement.innerHTML.split('</g-emoji>'); | |
| const point = Number(splitedHtml[splitedHtml.length - 1].trim()); | |
| if (point > 0) { | |
| pointsWithIndex.push({ point, index }); |
버전과 관련된 에러다. Sequelize5부터는 find 함수가 사라지고 findOne 함수를 사용한다.
추가 내용은 http://docs.sequelizejs.com/manual/upgrade-to-v5.html#model 페이지의 Removed aliases 부분을 참고한다.
MacOS에서 MySQL 설치 도중 다음과 같은 오류가 발생했다:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock (2)'
아래 명령어까지는 정상적으로 실행됐다:
brew install mysql