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 http = require('http'); | |
| http.createServer(function(request, response) { | |
| response.writeHead(200, {'Content-Type':'text/html'}); | |
| response.end('<h1>Hello! node.js</h1>'); | |
| }).listen(8081); | |
| console.log('Server running at http://127.0.0.1:8081/'); |
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
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>416.bz: Google Closure Library Sample</title> | |
| <!--// common.cssを読み込む //--> | |
| <link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/common.css" /> | |
| <link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/button.css" /> | |
| <link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/custombutton.css" /> | |
| </head> | |
| <body> |
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
| /** | |
| * app.js | |
| */ | |
| // オブジェクト領域を確保する | |
| goog.provide("app"); | |
| goog.provide("app.Base"); | |
| goog.provide("app.Page"); | |
| goog.require("goog.dom"); // DOM関連ライブラリを読み込む |
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
| [amazon asin=1234567890 type=mini] |
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
| /** | |
| * app.js | |
| */ | |
| // オブジェクト領域を確保する | |
| goog.provide("app"); | |
| goog.provide("app.Base"); | |
| goog.provide("app.Page"); | |
| goog.require("goog.dom"); // DOM関連ライブラリを読み込む |
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
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>416.bz: Google Closure Library Sample</title> | |
| <!--// common.cssを読み込む //--> | |
| <link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/common.css" /> | |
| </head> | |
| <body> | |
| <h1>416.bz: Google Closure Library Sample</h1> | |
| <div id="content"></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
| python ./google-closure-library/closure/bin/build/depswriter.py --output_file=deps.js --root_with_prefix="app ../../../app" |
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
| /** | |
| * app.js | |
| */ | |
| // オブジェクト領域を確保する | |
| goog.provide("app"); | |
| goog.provide("app.Base"); | |
| goog.provide("app.Page"); | |
| app.Base = 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
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>416.bz: Google Closure Library Sample</title> | |
| <!--// common.cssを読み込む //--> | |
| <link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/common.css" /> | |
| </head> | |
| <body> | |
| <h1>416.bz: Google Closure Library Sample</h1> | |
| <div id="content"></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
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>416.bz: Google Closure Library Sample</title> | |
| </head> | |
| <body> | |
| <h1>416.bz: Google Closure Library Sample</h1> | |
| <div id="content"></div> | |
| <div id="buttons"></div> | |
| </body> |