Skip to content

Instantly share code, notes, and snippets.

View devheedoo's full-sized avatar
☺️
React + TypeScript

heedo devheedoo

☺️
React + TypeScript
  • Growdle
  • Seoul, South Korea
View GitHub Profile
@devheedoo
devheedoo / gists.md
Created July 3, 2020 02:23
Gists while working

Gists

Temp

  • 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

Git

Install

Cocoapods

Uninstall

> sudo gem uninstall cocoapods
@devheedoo
devheedoo / exceptAge.js
Last active February 17, 2020 09:36
Get object except some properties
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);
@devheedoo
devheedoo / semantic-commit-messages.md
Created February 17, 2020 02:01 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@devheedoo
devheedoo / React Native Easings
Created November 28, 2019 13:21 — forked from dabit3/React Native Easings
React Native Easing animations
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
Easing,
Animated,
@devheedoo
devheedoo / goToMostPointedAnswerInGithubIssue.js
Created November 7, 2019 08:48
Go to the most pointed answer in GitHub Issue
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 });

MacOS에서 MySQL 설치 도중 다음과 같은 오류가 발생했다:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock (2)'

아래 명령어까지는 정상적으로 실행됐다:

brew install mysql

발생 원인

MySQL 을 사용하는 경우,

ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client

위와 같은 오류를 만났다면 이는 암호화 방식의 차이 때문이다.

@devheedoo
devheedoo / sql.md
Last active February 2, 2017 01:46
Document for simple sql works

SQL

MySQL

$ mysql -u root -p

Dump

Import

$ mysqldump -u root -p --routines [dbname] > [filename].sql;

$ mysqldump -u root -p --routines --all-databases > [filename].sql;

Export