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
/* ellipsis css */ | |
.ellipsis { | |
width: 100%; | |
display: block; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
-o-text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
.ellipsis-2 { |
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 checkMobile = () => { | |
const userAgent = navigator.userAgent.toLocaleLowerCase(); | |
if(userAgent.indexOf('android') > -1) { | |
return 'android'; | |
} | |
if(userAgent.indexOf('iphone') > -1 || userAgent.indexOf('ipad') > -1 || userAgent.indexOf('ipod') > -1) { | |
return 'ios'; | |
} |
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
/** | |
* Difference between arrays in JavaScript | |
* - This is called a symmetric difference | |
* - The element present is arr1 alone and elements present in arr2 alone combined | |
*/ | |
const arr1 = [1, 2, 3, 4, 5, 6]; | |
const arr2 = [3, 4, 5, 6, 7, 8]; | |
// diffLeft is all the elements present only in arr1 and vice versa |
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 fruits = ['π', 'π', 'π', 'π', 'π']; | |
console.log(fruits); | |
const uniqueFruites = [...new Set(fruits)]; | |
console.log(uniqueFruites); |
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
module.exports = { | |
tabWidth: 4, // ν λλΉ | |
printWidth: 80, // μ€ λ°κΏ ν ν κΈΈμ΄ | |
semi: true, // μΈλ―Έμ½λ‘ μ¬μ© μ¬λΆ | |
singleQuote: true, // single quote μ¬μ©μ¬λΆ | |
trailingComma: 'all', // μ¬λ¬ μ€μ μ¬μ©ν λ, νν μ½€λ§ μ¬μ© λ°©μ | |
htmlWhitespaceSensitivity: 'ignore', // HTML 곡백 κ°λ μ€μ | |
spaceBeforeFunctionParen: true, // function keyword μμ 곡백μ λ£μμ§ μ¬λΆ | |
proseWrap: 'preserve', // markdown ν μ€νΈμ μ€λ°κΏ λ°©μ (v1.8.2) | |
jsxSingleQuote: true, // JSXμ singe μΏΌν μ΄μ μ¬μ© μ¬λΆ |
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
π Morning 253 commits βββββββββββββββββββββ 26.5% | |
π Daytime 563 commits βββββββββββββββββββββ 59.0% | |
π Evening 128 commits βββββββββββββββββββββ 13.4% | |
π Night 11 commits βββββββββββββββββββββ 1.2% |