- 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 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
{ | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.integrated.fontFamily": "Hack", | |
"terminal.integrated.defaultProfile.osx": "zsh", | |
"editor.minimap.enabled": false, | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true, | |
"typescript.preferences.quoteStyle": "single", | |
"javascript.preferences.quoteStyle": "single", | |
"editor.defaultFormatter": "esbenp.prettier-vscode", |
This file contains 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
git branch | tr -s '\n' ' ' | tr -s '*' ' ' | xargs git branch -D |
This file contains 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 likedVideoElements = document.querySelectorAll('ytd-playlist-video-renderer.ytd-playlist-video-list-renderer yt-icon.ytd-menu-renderer'); | |
for (let i=0; i<likedVideoElements.length; i++) { | |
setTimeout(() => { | |
likedVideoElements[i].click(); | |
setTimeout(() => { document.querySelectorAll('yt-formatted-string.ytd-menu-service-item-renderer')[3].click(); }, 200); | |
}, i * 500); | |
} |
This file contains 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 numbers = [2, 5, 1, 3, 4]; | |
function asyncNumber (n) { | |
return new Promise((resolve, reject) => { resolve(n) }); | |
} | |
async function asyncSum (numbers) { | |
return numbers.reduce(async (prevSum, n) => { | |
const sum = await prevSum; | |
return asyncNumber(sum + n); |
This file contains 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 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 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 }); |
NewerOlder