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 encodingTable = { | |
| "A": "ํ", "a": "ํ", "B": "ํ", "b": "ํ", "C": "ํ", "c": "ํ", "D": "ํ", "d": "ํ", | |
| "E": "ํ", "e": "ํ", "F": "ํ ", "f": "ํ", "G": "ํ", "g": "ํ ", "H": "ํ", "h": "ํก", | |
| "I": "ํ", "i": "ํข", "J": "ํ", "j": "ํฃ", "K": "ํ", "k": "ํค", "L": "ํ", "l": "ํฅ", | |
| "M": "ํ", "m": "ํฆ", "N": "ํ", "n": "ํง", "O": "ํ", "o": "ํจ", "P": "ํ", "p": "ํฉ", | |
| "Q": "ํ", "q": "ํช", "R": "ํ", "r": "ํซ", "S": "ํ", "s": "ํฌ", "T": "ํ", "t": "ํญ", | |
| "U": "ํ", "u": "ํฎ", "V": "ํ", "v": "ํฏ", "W": "ํ", "w": "ํฐ", "X": "ํ", "x": "ํฑ", | |
| "Y": "ํ", "y": "ํฒ", "Z": "ํ", "z": "ํณ" | |
| }; |
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 fs from "fs"; | |
| import OpenAI from "openai"; | |
| const openai = new OpenAI({ | |
| apiKey: "์ฌ๊ธฐ์ ์ฝ๋๋ฅผ ๋ฃ์ผ์์ค", | |
| }); | |
| const prompt = `์๋ ์ฃผ์ด์ง๋ ์์ด JSON์ ์ผ๋ณธ์ด๋ก ๋ฒ์ญํด์ค` | |
| export const chunk = (arr, size) => { |
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 { RefObject, useEffect, useRef } from 'react' | |
| export const applyMangoMotion = (iframeRef: RefObject<HTMLIFrameElement>) => { | |
| if (!iframeRef.current) return | |
| const iframe = iframeRef.current | |
| const iframeWin = iframe.contentWindow || iframe | |
| const iframeDoc = iframe.contentDocument || (iframeWin as any).document | |
| const style = iframeDoc.createElement('style') |
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 puppeteer from 'puppeteer-extra'; | |
| import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest | |
| import * as readline from 'readline'; | |
| puppeteer.use(pluginStealth()); | |
| // Use '-h' arg for headful login. | |
| const headless = !process.argv.includes('-h'); | |
| // Prompt user for email and password. |
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 fs from "fs"; | |
| import * as tokenizer from "gpt-3-encoder"; | |
| import { Configuration, OpenAIApi } from "openai"; | |
| import { logger } from "./utils/logger.js"; | |
| import jsonl from "jsonl"; | |
| import inquirer from "inquirer"; | |
| import chalk from "chalk"; | |
| export const loadProjectDataFromJSON = ( | |
| assetPath: string |
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 T1 { | |
| name: string; | |
| email: string; | |
| properties: { | |
| creators: [{ | |
| name: string; | |
| }]; | |
| color: string; | |
| } | |
| } |
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 { useEffect, useRef } from 'react' | |
| interface IComponentProps<T> { | |
| // TODO | |
| } | |
| const template = ` | |
| <div></div> | |
| ` |
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
| <!-- Copy and paste all the codes below onto the </body> Swagger HTML --> | |
| <!-- Customize Code START --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/darkreader/4.9.39/darkreader.min.js" | |
| integrity="sha512-ZCoQYqkc9/Yokyl2tJRRGKY/nrcpeF01NMeGoF7QPEoMSneYZlxUqSFnvVGH+CWBsm1HuQyWoq9Jp1SeTIukEA==" | |
| crossorigin="anonymous" referrerpolicy="no-referrer"></script> | |
| <style> | |
| .topbar { | |
| opacity: 0; | |
| margin-top: -80px; |
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 outerLexicalEnvironment = { | |
| window: {}, | |
| global: {}, | |
| Object: {}, | |
| Function: {}, | |
| self: {}, | |
| globalThis: {}, | |
| Error: {}, | |
| TypeError: {}, | |
| JSON: {}, |
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 Excel = require("exceljs"); | |
| const workbook = new Excel.Workbook(); | |
| void (async () => { | |
| const excel = await workbook.xlsx.readFile("before.xlsx"); | |
| const worksheets = excel.worksheets; | |
| // ์ฒซ ๋ฒ์งธ ์ํธ์ ๋ณด ์ป์ด์ค๊ธฐ | |
| const originSheet = worksheets[0]; |