아티스트 상세 페이지 (/artists/[slug])를 대상으로 React Server Component(RSC)와 Client Component의 실제 번들 크기 및 성능을 비교 분석한 문서입니다.
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
| assembler = {} | |
| function on_msg_receive (msg) | |
| print_r(msg) | |
| local chat_name = msg.to.print_name | |
| local username = msg.from.print_name | |
| local receive_msg = string.lower(msg.text) | |
| if ( string.find(receive_msg, "assemble!") or string.find(receive_msg, "어셈블!") ) then | |
| assembler[username] = username | |
| local assemble_users = ""; | |
| for k, v in pairs(assembler) do |
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
| var Calcurator = { | |
| "add" : function(a, b){ | |
| return parseInt(a) + parseInt(b); | |
| }, | |
| "minus" : function(a, b){ | |
| return a - b; | |
| } | |
| }; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Calculator Test</title> | |
| <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.10.0.css"> | |
| <script type="text/javascript" src="http://code.jquery.com/qunit/qunit-1.10.0.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
| <script type="text/javascript" src="Calculator.js"></script> | |
| <script type="text/javascript"> |
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
| $(document).ready(function(){ | |
| test("add 함수 테스트", function(){ | |
| ok(Calcurator.hasOwnProperty("add"), "add 함수 존재"); | |
| equal(Calcurator.add(1, 2), 3, "add 함수에 1과 2를 더한 결과는 3"); | |
| }); | |
| }); |
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
| test("테스트 명", function(){ | |
| // .... | |
| }) |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>QUnit Example</title> | |
| <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.10.0.css"> | |
| <script type="text/javascript" src="http://code.jquery.com/qunit/qunit-1.10.0.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function(){ |
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
| var Calcucator = { | |
| "add" : function(a, b){ | |
| return a + b; | |
| }, | |
| "minus" function(a, b){ | |
| return a - b; | |
| } | |
| }; |
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
| alert("Hello Gist!"); |