list all remote branches2020. 9. 22.
git branch -a
git branch -a
node-sass: "Incompatible units"2020. 9. 17.
max(50% - 2px) // sass Error: Incompatible units '%' and 'px'
max(50% - 2px) // sass Error: Incompatible units '%' and 'px'
calc(max(50% - 2px)) // okay
calc(max(50% - 2px)) // okay
alt=""2020. 9. 15.
To summarize, all images should have an alt attribute, but they need not all have text. Important images should have descriptive alt text that succinctly describes what the image is, while decorative images should have empty alt attributes — that is, alt="".
div border-collapse hack2020. 9. 11.
box-shadow:
<border-width> 0 0 0 <border-color>,
0 <border-width> 0 0 <border-color>,
<border-width> <border-width> 0 0 <border-color>,
<border-width> 0 0 0 <border-color> inset,
0 <border-width> 0 0 <border-color> inset;
box-shadow:
<border-width> 0 0 0 <border-color>,
0 <border-width> 0 0 <border-color>,
<border-width> <border-width> 0 0 <border-color>,
<border-width> 0 0 0 <border-color> inset,
0 <border-width> 0 0 <border-color> inset;
Ref
chrome 에서 command palette 사용하기2020. 9. 9.
shift + cmd + /
이것은 사실 Help/Search 단축키이지만 vscode의 shift + cmd + p 와 같은 용도로 사용할 수 있다.
Uncaught TypeError: Cannot read property '__k' of null2020. 9. 9.
preact app을 렌더할 DOM el이 현재 존재하지 않기 때문에 발생하는 에러
css grid border collapse (sort of)2020. 8. 25.
parent:
grid-gap: 1px;
grid-gap: 1px;
child:
box-shadow: 0 0 0 1px <color>;
box-shadow: 0 0 0 1px <color>;
delete all branches except current2020. 8. 19.
git branch -D $(git branch)
git branch -D $(git branch)
checkout to prev branch2020. 8. 19.
git checkout @{-1}
git checkout @{-1}
더 짧게는
git checkout -
git checkout -
chmod2020. 8. 16.
chmod +rwx <filename>
to add permissions.chmod -rwx <directoryname>
to remove permissions.chmod +x <filename>
to allow executable permissions.chmod -wx <filename>
to take out write and executable permissions.