Skip to content

Instantly share code, notes, and snippets.

View cs09g's full-sized avatar
๐Ÿ 
Working from home

SeulGi Choi(Chase) cs09g

๐Ÿ 
Working from home
View GitHub Profile
@fedek6
fedek6 / Readme.md
Created August 15, 2021 18:15
Working Linaria config for Storybook (Webpack 5)

You must use Storybook with webpack5!

npx sb@next init --builder webpack5

Remember to install all nedded packages because debugging babel deps might be tricky.

Enjoy!

const inBrowser = typeof window !== 'undefined'
const inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform
const weexPlatform = inWeex && WXEnvironment.platform.toLowerCase()
const UA = inBrowser && window.navigator.userAgent.toLowerCase()
const isIE = UA && /msie|trident/.test(UA)
const isIE9 = UA && UA.indexOf('msie 9.0') > 0
const isEdge = UA && UA.indexOf('edge/') > 0
const isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android')
const isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios')
const isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge
@snaag
snaag / Execution-Context.md
Last active January 12, 2023 00:57
Execution Context

๋“ค์–ด๊ฐ€๋ฉฐ

์ง€๋‚œ JavaScript, Front-End ๋ฐœํ‘œ ์ฃผ์ œ๋Š” this ์˜€์ง€๋งŒ, ๊ณต๋ถ€ํ•˜๋‹ค ๋ณด๋‹ˆ ์‹คํ–‰ ์ปจํ…์ŠคํŠธ์— ๋Œ€ํ•œ ๋‚ด์šฉ์ด ์„ ํ–‰๋˜์•ผ ํ•  ๊ฒƒ ๊ฐ™์•„ ์‹คํ–‰ ์ปจํ…์ŠคํŠธ์— ๋Œ€ํ•˜์—ฌ ๋ฐœํ‘œ๋ฅผ ํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค.

์—ฌ๋Ÿฌ ์ž๋ฃŒ์™€ ์ฑ…์„ ์ฐธ๊ณ ํ•˜๋ฉฐ ๊ณต๋ถ€๋ฅผ ํ•˜๊ณ  ์žˆ์Œ์—๋„ ๋‚ด์šฉ์ด ์ž˜ ์™€๋‹ฟ์ง€ ์•Š์•„ ์ฐธ๊ณ 1์„ ์ฐธ๊ณ 2, ์ฐธ๊ณ 3, ์ฐธ๊ณ 4, ์ฑ… ์ธ์‚ฌ์ด๋“œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ, Poiema Web์„ ์ฐธ๊ณ ํ•˜์—ฌ ๋ฒˆ์—ญ์„ ํ•ด๋ณด๊ณ ์ž ํ•œ๋‹ค. ์ถ”๊ฐ€์ ์œผ๋กœ ๋‚ด๊ฐ€ ์—ฌ๋Ÿฌ ์ž๋ฃŒ๋ฅผ ์ฐพ์•„๋ณด๋ฉด์„œ ์•Œ๊ฒŒ ๋œ ๋‚ด์šฉ๋“ค๋„ ๋ง๋ถ™์ผ ๊ฒƒ์ด๋‹ค.

์‹คํ–‰ ์ปจํ…์ŠคํŠธ, Execution Context(์ดํ•˜ EC) ๋ผ๋Š” ๊ฐœ๋…์€ ๋‚˜์—๊ฒ ๋‚ฏ์„ค์—ˆ๊ธฐ์— ๋‚˜์™€ ๊ฐ™์€ ์‚ฌ๋žŒ๋“ค์ด ์žˆ์„ ๊ฒƒ ๊ฐ™์•„ ํ”ํžˆ๋“ค ์•„๋Š” ์ฝœ์Šคํƒ ์„ ์‹œ์ž‘์œผ๋กœ ๊ธ€์„ ์จ๋ณด๋„๋ก ํ•˜๊ฒ ๋‹ค.

@loilo
loilo / pass-slots.md
Last active February 20, 2025 09:47
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active January 14, 2025 02:29
AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ

AWS ํ•™์Šต ๋งํฌ์ง‘ ์‹œ๋ฆฌ์ฆˆ

  • AWS ํ•™์Šต ์ž๋ฃŒ์ง‘ http://bit.ly/aws-study-resource
  • AWS ๊ณต์ธ ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/sacertguide
  • AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/devcertguide
  • AWS ๋ณด์•ˆ ๊ด€๋ จ ์ปจํ…์ธ  ๋ชจ์Œ์ง‘ http://bit.ly/seccontents

AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ(http://bit.ly/devcertguide)

@webarthur
webarthur / pure-slidedown-slideup.css
Last active December 7, 2024 09:59
Pure CSS slidedown / slideup animation using transform translateY
.slide-up, .slide-down {
overflow:hidden;
}
.slide-up > div, .slide-down > div {
transform: translateY(-100%);
transition: .4s ease-in-out;
}
.slide-down > div {
transform: translateY(0);
}
@subfuzion
subfuzion / curl.md
Last active April 19, 2025 09:46
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@paulirish
paulirish / what-forces-layout.md
Last active April 19, 2025 04:59
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@roachhd
roachhd / README.md
Last active April 18, 2025 16:12
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@irazasyed
irazasyed / homebrew-permissions-issue.md
Last active January 25, 2025 15:00
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*