๐Ÿ’ป๊ธฐ์ˆ /JavaScript

    [ ThreeJS ] OBJLoader object ์œ„์น˜ ์ด๋™

    ํ™˜๊ฒฝ ๊ตฌ์„ฑ ThreeJS 0.128.0 ๋ฒ„์ „์„ ์ด์šฉํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜ CDN ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”. ์œ„์น˜ ์ด๋™ ThreeJS์—์„œ ์˜ค๋ธŒ์ ํŠธ ์œ„์น˜๋ฅผ ์ด๋™์‹œํ‚ค๊ธฐ ์œ„ํ•ด์„œ๋Š” setX, setY, setZํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•ฉ๋‹ˆ๋‹ค. const loader = new THREE.OBJLoader(loadmanager); loader.load( url, ( object ) => { object.position.setX( position.x ); object.position.setY( position.y ); object.position.setZ( position.z ); this.scene.add( object ); }); ์‚ฌ์‹ค, OBJLoader ๋ง๊ณ ๋„ GLTFLoader ๋‚˜ ๊ธฐํƒ€ ๋กœ๋”์˜ ์˜ค๋ธŒ์ ํŠธ๋“ค์—๋„ ์ ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ถ”๊ฐ€์ ์ธ..

    [ NodeJS ] javascript-obfuscator ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋‚œ๋…ํ™”

    0. ์†Œ๊ฐœ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ์˜ ์••์ถ•๊ณผ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์•”ํ˜ธํ™”๋ฅผ ์œ„ํ•ด ๋Œ€๋ถ€๋ถ„์˜ ์›น์‚ฌ์ดํŠธ์—์„œ๋Š” ๋‚œ๋…ํ™” ์ž‘์—…์ด ํ•„์ˆ˜์ž…๋‹ˆ๋‹ค. ๋‚œ๋…ํ™”๋Š” ํ”„๋ก ํŠธ์—”๋“œ ์ฝ”๋“œ๋ฅผ ๋ณดํ˜ธํ•˜๊ณ  ํ•ด์„์„ ์–ด๋ ต๊ฒŒ ๋งŒ๋“ค์–ด ์ˆ˜์ค€ ๋†’์€ ๋ณด์•ˆ์„ ์œ ์ง€ํ•˜๋„๋ก ๋„์™€์ค๋‹ˆ๋‹ค. ๊ผญ ๋ณดํ˜ธ๊ฐ€ ์•„๋‹ˆ๋”๋ผ๋„ ์ž‘์„ฑํ•œ ์ฝ”๋“œ์— ๋Œ€ํ•ด ์•Œ๊ณ ๋ฆฌ์ฆ˜๊ณผ ์•„์ด๋””์–ด๋ฅผ ์ˆจ๊ธธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ์˜๋ฏธ์—์„œ ๋‚œ๋…ํ™”๋Š” ์ฝ”๋“œ ๋ณดํ˜ธ๋ฟ ์•„๋‹ˆ๋ผ ๋‹ค๋ฐฉ๋ฉด์—์„œ ์œ ์šฉํ•˜๋‹ค๊ณ  ๋งํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. NodeJS์—์„œ ๋‚œ๋…ํ™”๋ฅผ ์ง„ํ–‰ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋จผ์ € ๋ฐ๋ชจ๋Š” ์•„๋ž˜ ์‚ฌ์ดํŠธ์—์„œ ํ™•์ธํ•ด ์ฃผ์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค. https://obfuscator.io/ JavaScript Obfuscator Tool What is this? This tool transforms your original JavaScript source code into a new ..

    [ PeerJS ] WebRTC ๋ฅผ ํŽธํ•˜๊ฒŒ ๋‹ค๋ค„๋ณด์ž

    I. PeerJS ๊ธฐ์ˆ ์„ ๊ณต๋ถ€ํ•˜๋Š” ์‚ฌ๋žŒ์œผ๋กœ์„œ WebRTC๋ฅผ ์ง์ ‘ ๊ตฌํ˜„ํ•˜๊ธฐ์—๋Š” ๋ฒ…์ฐฌ ๊ฐ์ด ์—†์ง€ ์•Š์•„ ์žˆ๋‹ค. ์ตœ์‹  ๊ธฐ์ˆ ์ด๊ธฐ๋„ ํ•˜๊ณ  ๊ด€๋ จ ๋ ˆํผ๋Ÿฐ์Šค๋ฟ ์•„๋‹ˆ๋ผ ํ•ด์™ธ ์ž๋ฃŒ ๋˜ํ•œ ์ถฉ๋ถ„ํ•˜์ง€ ์•Š๋‹ค. ๊ฐ„๋‹จํžˆ WebRTC๋ฅผ ์งš๊ณ  ๋„˜์–ด๊ฐ€์ž๋ฉด '์›น์„œ๋ฒ„(์ค‘๊ฐ„์ž) ์—†์ด ๋ฐ์ดํ„ฐ๋ฅผ ์ŠคํŠธ๋ฆผ'ํ•˜๋Š” API๋ผ๊ณ  ๋ณผ ์ˆ˜ ์žˆ๋‹ค. ์ฝ”๋กœ๋‚˜ ์‚ฌํƒœ๋กœ ๋ธŒ๋ผ์šฐ์ €์—์„œ ์‹ค์‹œ๊ฐ„ ์ปค๋ฎค๋‹ˆ์ผ€์ด์…˜์ด ํ•„์š”ํ•ด์ง€๊ฒŒ ๋จ์— ๋”ฐ๋ผ ์“ฐ์ด๊ฒŒ ๋œ ๊ธฐ์ˆ ์ด๋‹ค. PeerJS๋Š” WebRTC๋ฅผ ํŽธํ•˜๊ฒŒ ์ด์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ๋” ์ œ์ž‘๋œ ๊ฐ„๋‹จํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค. https://peerjs.com PeerJS - Simple peer-to-peer with WebRTC The PeerJS library PeerJS simplifies WebRTC peer-to-peer data, video, and audi..

    [ Javascript ] Solvedac API๋กœ ๋ฐฑ์ค€ ์‚ฌ์šฉ์ž ์ •๋ณด ๊ฐ€์ ธ์˜ค๊ธฐ

    I. ์ค€๋น„ ์•ˆ๋…•ํ•˜์„ธ์š”. ๋ฐฑ์ค€์€ ๋”ฐ๋กœ API๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— Solved AC์—์„œ ์ œ๊ณตํ•˜๋Š” API๋ฅผ ํ™œ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ตฌํ˜„์— ํ•„์š”ํ•œ ์ •๋ณด๋Š” https://solvedac.github.io/unofficial-documentation/#/operations/getUser @solvedac/unofficial-documentation solvedac.github.io ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. II. ๊ฐœ๋ฐœ ์ € ๊ฐ™์€ ๊ฒฝ์šฐ ํฌํŠธํด๋ฆฌ์˜ค์— ์ ์šฉํ•ด์„œ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ฝ”๋“œ ์ „๋ฌธ https://github.com/DipokalLab/JS_SolvedacAPI/blob/main/get_info.js GitHub - DipokalLab/JS_SolvedacAPI: JS์—์„œ ๋ฐฑ์ค€ ํ‹ฐ์–ด๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค JS์—์„œ ๋ฐฑ์ค€ ํ‹ฐ์–ด๋ฅผ..