For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| import getUniqueFileName from './getUniqueFileName.mjs'; // [!code ++] | |
| /** | |
| * ์ฝ๋ ๋ธ๋ก์์ files ๊ฐ์ฒด๋ฅผ ์์ฑํ๋ ํจ์ | |
| * @param {Array} codeBlocks - parseCodeBlocks ํจ์๋ก ํ์ฑ๋ ์ฝ๋ ๋ธ๋ก ๋ฐฐ์ด | |
| * @param {string} fileTitle - ํ์ผ ์ ๋ชฉ (์ฝ๋ ๋ธ๋ก ์ ๋ชฉ์ด ์์ ๋ ์ฌ์ฉ) | |
| * @returns {Object} - Gist API์ ์ ๋ฌํ files ๊ฐ์ฒด | |
| */ | |
| function createFilesObject(codeBlocks, fileTitle) { | |
| // Code block ๋ด์ key ๊ฐ ์ค๋ณต์ ์ฒดํฌํ๊ธฐ ์ํด ์ฌ์ฉ |
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
| // slugify.js - ESM Version | |
| const charMap = JSON.parse( | |
| // eslint-disable-next-line no-useless-escape | |
| '{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","ยข":"cent","ยฃ":"pound","ยค":"currency","ยฅ":"yen","ยฉ":"(c)","ยช":"a","ยฎ":"(r)","ยบ":"o","ร":"A","ร":"A","ร":"A","ร":"A","ร":"A","ร ":"A","ร":"AE","ร":"C","ร":"E","ร":"E","ร":"E","ร":"E","ร":"I","ร":"I","ร":"I","ร":"I","ร":"D","ร":"N","ร":"O","ร":"O","ร":"O","ร":"O","ร":"O","ร":"O","ร":"U","ร":"U","ร":"U","ร":"U","ร":"Y","ร":"TH","ร":"ss","ร ":"a","รก":"a","รข":"a","รฃ":"a","รค":"a","รฅ":"a","รฆ":"ae","รง":"c","รจ":"e","รฉ":"e","รช":"e","รซ":"e","รฌ":"i","รญ":"i","รฎ":"i","รฏ":"i","รฐ":"d","รฑ":"n","รฒ":"o","รณ":"o","รด":"o","รต":"o","รถ":"o","รธ":"o","รน":"u","รบ":"u","รป":"u","รผ":"u","รฝ":"y","รพ":"th","รฟ":"y","ฤ":"A","ฤ":"a","ฤ":"A","ฤ":"a","ฤ":"A","ฤ ":"a","ฤ":"C","ฤ":"c","ฤ":"C","ฤ":"c","ฤ":"D","ฤ":"d","ฤ":"DJ","ฤ":"dj","ฤ":"E","ฤ":"e","ฤ":"E","ฤ":"e","ฤ":"e","ฤ":"e","ฤ":"E","ฤ":"e","ฤ":"G","ฤ":"g","ฤข":"G","ฤฃ":"g","ฤจ":"I","ฤฉ":"i","ฤช":"i","ฤซ":"i","ฤฎ":"I","ฤฏ":"i","ฤฐ |
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
| /** | |
| * Split a file name into its name and extension. | |
| * | |
| * // splitFileNameRegex(fileName: string): { name: string; extension: string | undefined } | |
| * @param {string} fileName The file name to split. | |
| * @returns {Object} An object with the file name and its extension. | |
| * @returns {string} name The name of the file. | |
| * @returns {string | undefined} extension The extension of the file, or undefined if there is no extension. | |
| */ | |
| export default function splitFileNameRegex(fileName) { |
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
| /** | |
| * Custom debounce based on lodash.debounce. | |
| * | |
| * 1. ๋ถํ์ํ ์ ์ญ ๊ฐ์ฒด ํ์ง ์ ๊ฑฐ: | |
| * freeGlobal๊ณผ freeSelf๋ฅผ ์ ๊ฑฐํ๊ณ , globalThis๋ฅผ ๊ธฐ๋ณธ์ผ๋ก ์ฌ์ฉํ๋, ๋ธ๋ผ์ฐ์ ํธํ์ฑ์ ์ํด ๊ฐ๋จํ ํด๋ฐฑ์ ์ถ๊ฐํ์ต๋๋ค. ํ๋ ํ๊ฒฝ์์๋ globalThis๊ฐ ๋๋ถ๋ถ ์ง์๋๋ฏ๋ก ์ฝ๋๊ฐ ๊ฐ๊ฒฐํด์ก์ต๋๋ค. | |
| * 2. ํ์ ๊ฐ์ : | |
| * any ์ฌ์ฉ์ ์ต์ํํ๊ณ , unknown๊ณผ ์ ๋ค๋ฆญ ํ์ ์ ํ์ฉํด ํ์ ์์ ์ฑ์ ๋์์ต๋๋ค. | |
| * Parameters<T>์ ReturnType<T>๋ฅผ ์ฌ์ฉํด ํจ์ ์ธ์์ ๋ฐํ๊ฐ์ ํ์ ์ ์ ํํ ์ถ๋ก ํ๋๋ก ํ์ต๋๋ค. | |
| * 3. ๋ณ์ ์ ์ธ ๊ฐ์ํ: | |
| * options ์ฒ๋ฆฌ ๋ก์ง์ ๊ตฌ์กฐ ๋ถํด ํ ๋น์ผ๋ก ๊ฐ์ํํด ๊ฐ๋ ์ฑ์ ๋์์ต๋๋ค. |
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
| // Generic debounce function | |
| const debounce = function (fn, delay = 16 /* 60fps */) { | |
| let timeout; | |
| return function (...args) { | |
| const context = this; | |
| if (timeout) clearTimeout(timeout); | |
| timeout = setTimeout(() => { | |
| fn.apply(context, args); | |
| }, delay); |
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
| # yaml-language-server: $schema=https://storage.googleapis.com/coderabbit_public_assets/schema.v2.json | |
| # original schema url : https://coderabbit.ai/integrations/schema.v2.json | |
| # document url : https://docs.coderabbit.ai/getting-started/configure-coderabbit/ | |
| language: 'ko-KR' | |
| early_access: false | |
| reviews: | |
| profile: 'chill' | |
| request_changes_workflow: false | |
| high_level_summary: true | |
| poem: false |
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
| interface ColorSelectionOptions { | |
| signal?: AbortSignal | |
| } | |
| interface ColorSelectionResult { | |
| sRGBHex: string | |
| } | |
| interface EyeDropper { | |
| open: (options?: ColorSelectionOptions) => Promise<ColorSelectionResult> |
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
| -- Set this property to true to always open in a new window | |
| property open_in_new_window : false | |
| -- Set this property to false to reuse current tab | |
| property open_in_new_tab : true | |
| -- Set this property to true if iTerm is configured to launch without opening a new window | |
| property iterm_opens_quietly : false | |
| -- Handlers |
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
| -- Set this property to true to always open in a new window | |
| property open_in_new_window : false | |
| -- Set this property to false to reuse the current tab | |
| property open_in_new_tab : true | |
| -- Set start $HOME directory | |
| property open_home_directory : true | |
| -- Handlers |
NewerOlder