This file contains 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
{ | |
"me": { | |
"name": "takanori", | |
"friends": [ | |
{ | |
"name": "taro" | |
}, | |
{ | |
"name": "noriko" | |
} |
This file contains 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
query UserData { | |
me { | |
name | |
friends { | |
name | |
} | |
} | |
} |
This file contains 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
/* | |
* Copyright © [yyyy] [配布者の名前] | |
* http://www.hogehoge.com/(配布元のURL) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains 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
/* | |
* "InuFont" licensed under the SIL Open Font License | |
* https://www.hogehoge.com/(配布元のURL) | |
*/ | |
@font-face { | |
font-family: 'Fuga'; | |
src: url('Fuga.woff2') format('woff2'); | |
font-weight: normal; | |
font-style: normal; | |
} |
This file contains 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
<link rel="preload" as="font" type="font/woff2" href="fonts/font.woff2" crossorigin="anonymous"> |
This file contains 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
const font = new FontFace("hack", "url(https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.003/web/fonts/hack-regular.woff2)", { | |
style: 'normal', | |
weight:'400' | |
}); | |
// DOMツリーのレンダリングを待たずにフォントをダウンロードする | |
font.load(); | |
// font.load() はPromiseを返す | |
font.load().then(function() { |
This file contains 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
<div class="hoge"></div> | |
<button id="remove" type="button">back</button> | |
<button id="add" type="button">move</button> |
This file contains 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
import React, { Component } from 'react'; | |
import { render } from 'react-dom'; | |
import { BrowserRouter, Match, Miss, Link } from 'react-router' | |
class Top extends Component { | |
render() { | |
return <div>Top</div>; | |
} | |
} |
This file contains 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 lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Random animation</title> | |
<script src="main.js"></script> | |
</head> | |
<body> | |
<canvas id="cv" width="500" height="500"></canvas> | |
</body> | |
</html> |
This file contains 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
<div id="myApp"> | |
<p> | |
Task: | |
<input type="text" v-model="newTask" v-on:keyup.enter="addTask()"> | |
<button v-on:click="addTask()">ADD</button> | |
</p> | |
<ul> | |
<li v-for="todo in todos"> | |
<input type="checkbox" v-model="todo.isCompleted"> |