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> | |
| <!-- | |
| 1.コマンドラインに入力を待ち受けるための「>」を表示する。 | |
| 2.標準入力された値があればそのまま表示、値がなければ「未入力です」と表示して、再び入力待ち受け状態にする。 | |
| 3.「EXIT」が入力された時点でプログラムを終了する。 | |
| --> | |
| <script> | |
| (function(){ | |
| while(true){ |
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> | |
| <script> | |
| (function main(){ | |
| var input = Math.abs(Number(prompt("数字をいれてね"))); | |
| if (isOdd(input)) { | |
| output(input + " is odd"); | |
| } else { | |
| output(input + " is even"); |
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
| function HowOldAreYou(){ | |
| var messages = [ | |
| "あなたの名前を入力してください。" | |
| ,"あなたの年齢を入力してください。" | |
| ]; | |
| var name = prompt(messages[0]); | |
| output(name + "さんこんにちは。"); | |
| var age = Number(prompt(messages[1])); | |
| output("いま " + age + " 歳とすると、10年後は " + (age + 10) + " 歳ですね。"); |
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
| function Calc1(){ | |
| output(add(3,2)); | |
| output(sub(5,8)); | |
| output(mul(3,4)); | |
| output(div(7,3)); | |
| } | |
| function add(num1,num2){ | |
| return [ | |
| "加算の結果は" |
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
| function Aisatsu(){ | |
| var messages =[ | |
| "おはよう" | |
| ,"こんにちは" | |
| ,"こんばんは" | |
| ]; | |
| for (var index in messages) { | |
| output(messages[index]); | |
| } |
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
| ul>li { | |
| list-style-type: none; | |
| } | |
| ul>li:nth-child(3n):after { | |
| content: "Fizz"; | |
| } | |
| ul>li:nth-child(5n):after { | |
| content: "Buzz"; | |
| } |
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
| /* | |
| <program> | |
| <summary>ケンシロウバージョン</summary> | |
| <version>1.0</version> | |
| <date>2014/06/19</date> | |
| <author>omas</author> | |
| <file>fizzbuzz.js</file> | |
| <usage>jeek用</usage> | |
| </program> | |
| */ |
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
| #!/bin/bash | |
| cat $1 \ | |
| | sed -e "s/\r//g" \ | |
| | tr "\n" "@" \ | |
| | sed -e "s/<script>[^<]*<\/script>//g" \ | |
| | sed -e "s/<style>[^<]*<\/style>//g" \ | |
| | sed -e "s/<!--[^<]*-->//g" \ | |
| | sed -e "s/ //g" \ | |
| | sed -e "s/>/>/g" \ |
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
| a { | |
| color: #017acd; | |
| } | |
| /* コンテナ */ | |
| div#container { | |
| width: 760px; | |
| margin-left: auto; | |
| margin-right: auto; | |
| } |
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
| // 宿題 06/16:0900 |