Skip to content

Instantly share code, notes, and snippets.

View yungblud's full-sized avatar
๐Ÿ„โ€โ™‚๏ธ

Dong-Ho Choi yungblud

๐Ÿ„โ€โ™‚๏ธ
View GitHub Profile
@yungblud
yungblud / precommit.md
Created September 18, 2019 08:28
Pre Commit

package.json

  "scripts": {
    "precommit": "npm run precommit:client && npm run precommit:server",
    "precommit:client": "cd client && npm run precommit",
    "precommit:server": "cd server && npm run precommit"
  },

server/package.json

@yungblud
yungblud / checkboxcss.md
Created October 23, 2019 07:42
CheckBox CSS
.checkbox {
  position: absolute;
  display: none;
}

.label:before {
  box-sizing: border-box;
  content: '';
  float: left;
@yungblud
yungblud / metatag.md
Created October 24, 2019 01:40
Set No Cache in HTML Meta Tag
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="No-Cache" />
@yungblud
yungblud / CRA register serviceworker.md
Created December 21, 2019 05:34
CRA register serviceworker

๊ธฐ๋ณธ์ ์œผ๋กœ production์—์„œ๋งŒ service worker๊ฐ€ ๋™์ž‘ํ•˜๊ฒŒ ๋˜์žˆ์Œ.

index.js

serviceWorker.register();
@yungblud
yungblud / 1.react-pwa-from-webpack.md
Last active April 23, 2023 01:10
๋ฆฌ์•กํŠธ ํ”„๋กœ์ ํŠธ๋ฅผ ์›นํŒฉ์œผ๋กœ ๋งŒ๋“ค์–ด๋ณด๊ธฐ.
  1. ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ๋ฐ ๊นƒ ์ €์žฅ์†Œ master ํ‘ธ์‹œ.
mkdir react-webpack
yarn init -y
git init

https://gitignore.io ๋กœ .gitignore ์ƒ์„ฑ .gitignore

yarn add @loadable/component
yarn add --dev @types/loadable__component
@yungblud
yungblud / react-typescript-absolute.md
Created March 4, 2020 02:50
๋ฆฌ์•กํŠธ, ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ํ”„๋กœ์ ํŠธ์˜ ์ ˆ๋Œ€๊ฒฝ๋กœ ์ž„ํฌํŠธ
  1. tsconfig

tsconfig.json ์ชฝ์— baseUrl ์†์„ฑ์ด ๋“ค์–ด๊ฐ€์•ผ ํ•œ๋‹ค.

  "complilerOptions": {
    ...
    "baseUrl": ".",
    ...
 },

์„ค์น˜ ํ•  ํ•ญ๋ชฉ

  • Node.js : ๋ฆฌ์•กํŠธ ํ”„๋กœ์ ํŠธ๋ฅผ ์ค€๋น„ํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ webpack, babel ๋“ฑ์˜ ๋„๊ตฌ๋“ค์„ ์‹คํ–‰ํ•˜๋Š”๋ฐ์— ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
  • Yarn : ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํŒจํ‚ค์ง€๋ฅผ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด์„œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. Node.js ๋ฅผ ์„ค์น˜ํ•˜๋ฉด npm ์ด ์„ค์น˜๋˜์–ด์„œ npm ์œผ๋กœ ํ•ด๋„ ๋˜๊ธด ํ•˜์ง€๋งŒ, yarn์„ ์‚ฌ์šฉํ•˜๋ฉด ํ›จ์”ฌ ๋น ๋ฆ…๋‹ˆ๋‹ค.
  • Code Editor (VS Code, Atom, ...) : ์ฝ”๋“œ ์—๋””ํ„ฐ๋Š” ์—ฌ๋Ÿฌ๋ถ„์ด ์ข‹์•„ํ•˜๋Š”๊ฑธ ์‚ฌ์šฉํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ์ €๋Š” VS Code ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ•์˜๋ฅผ ์ง„ํ–‰ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Windows

Node.js

https://nodejs.org/ko/ ์— ๋“ค์–ด๊ฐ€์„œ ์ขŒ์ธก LTS ๋ฒ„์ „์„ ์„ค์น˜ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค

Yarn

https://yarnpkg.com/en/docs/install#windows-tab ์— ๋“ค์–ด๊ฐ€์„œ ์ธ์Šคํ†จ๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์„ค์น˜ํ•˜์„ธ์š”.

Install libimobiledevice on Mac OS X
So you'd like to manage your iOS devices by command line?
You can use libimobiledevice tools for that.
Easy on Linux. Let's see how it is on Mac OS X.
You'll need to:
1. install Xcode
2. start Xcode and agree to it's license
3. install Xcode command line tools (Start Xcode, Go to Preferences -> Downloads tab)
4. install homebrew by this command (sudo password will be prompted)