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
| fn main(){ | |
| let a:int = 10; | |
| println!("a= {}", a); | |
| let b = a; | |
| println!("a = {}", a); | |
| println!("b = {}", b); | |
| let mut c:int = 10; | |
| println!("c = {}", c); |
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 showAnswer = function(message){ | |
| var output = document.querySelector("#answer"); | |
| output.value = message; | |
| }; | |
| // ボタンが押されたら、実行される関数 | |
| var add = function(event){ | |
| var inputA = document.querySelector("#input-a"); | |
| var inputB = document.querySelector("#input-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> | |
| <title>local forage</title> | |
| <meta charset="utf-8"> | |
| </head> | |
| <body> | |
| <button id="add">add</button> | |
| <button id="get">get</button> | |
| <script src="js/localforage.min.js"></script> |
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
| body{ | |
| background-color: white; | |
| overflow: hidden; | |
| } | |
| body.night{ | |
| background-color: black; | |
| color: white; | |
| } | |
| h1{ | |
| font-size: 640%; |
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 util = require('util'); | |
| var twitter = require('twitter'); | |
| var twit = new twitter({ | |
| consumer_key: 'key', | |
| consumer_secret: 'secret', | |
| access_token_key: 'token_key', | |
| access_token_secret: 'token_secret' | |
| }); | |
| var delay = 5; // tweet を消すまでの秒数 |
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 gulp = require("gulp"); | |
| var app = require("./lib/server"); | |
| // start-server:サーバの起動タスク | |
| gulp.task("start-server", function() { | |
| console.log(process.cwd() + "/app"); | |
| console.log(app); | |
| var server = app.create({ | |
| port:8080, | |
| documentRoot: "./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
| { | |
| "name": "Skyway-test", | |
| "description": "A Hello World app", | |
| "launch_path": "/index.html", | |
| "icons": { | |
| "16": "/icons/icon16x16.png", | |
| "48": "/icons/icon48x48.png", | |
| "60": "/icons/icon60x60.png", | |
| "128": "/icons/icon128x128.png" | |
| }, |
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
| body{ | |
| margin: 0; | |
| padding: 0; | |
| } | |
| #preview{ | |
| width: 100%; | |
| } | |
| #canvas{ | |
| display: none; | |
| } |
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
| body{ | |
| font-size: 18px; | |
| overflow: hidden; | |
| background-color: #00539F; | |
| } | |
| h1{ | |
| font-size: 640%; | |
| line-height: .8; | |
| color: white; | |
| } |