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 onLoad="img()"> | |
| <div class="pc"> | |
| <canvas width="900" height="600" id="sample1"></canvas> | |
| </div> | |
| <div class="pad"> | |
| <canvas width="400" height="600" id="sample2"></canvas> | |
| </div> | |
| <div class="mobile"> | |
| <canvas width="150" height="900" id="sample3"></canvas> | |
| </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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <h1>aa</h1> |
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
| /* src/index.css */ | |
| body { | |
| background: yellow; | |
| } |
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 fizzbuzz(n: number): number|"Fizz"|"Buzz"|"FizzBuzz" { | |
| if (n % 15 === 0) { | |
| return "FizzBuzz"; | |
| } | |
| if (n % 3 === 0) { | |
| return "Fizz"; | |
| } | |
| if (n % 5 === 0) { | |
| return "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
| let value1: any; | |
| value1 = true; // OK | |
| value1 = 42; // OK | |
| value1 = "Hello World"; // OK | |
| value1 = []; // OK | |
| value1 = {}; // OK | |
| value1 = Math.random; // OK | |
| value1 = null; // OK | |
| value1 = undefined; // OK | |
| value1 = new TypeError(); // OK |
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> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <style> | |
| #my-text { | |
| color: #faa; | |
| } | |
| #my-text:fullscreen { | |
| color: #afa; | |
| } |
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
| let a = 273 | |
| ,b = 1001 | |
| function* foo() { | |
| while (true) { | |
| yield (a < b) ? [a, b - a] : [a - b, a] | |
| } | |
| } | |
| for ([a, b] of foo(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
| module.exports = ` | |
| foo.html | |
| bar/hoge/fuga.php | |
| bar/hoge/piyo.php | |
| bar/hogera.php | |
| baz/fugara.php | |
| ` |
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
| SLHFNLM |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define N 3 /* 各性の人数 */ | |
| int | |
| /* 添字(女性1..3) => 値(男性1..3) */ | |
| boy[4] = {0, 0, 0, 0} | |
| /* 各女性の好み */ | |
| // rank[女性1..3][男性1..3] = ランク |
OlderNewer