Skip to content

Instantly share code, notes, and snippets.

Yutaro YutaroSoejima

Block or report user

Report or block YutaroSoejima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View app.js
const wait = (delay) => {
return new Promise(resolve => setTimeout(resolve, delay));
}
async function tryWaitFunction () {
console.log('スタート')
await wait(1000);
console.log('途中')
await wait(1000);
console.log('終わり')
View file0.js
// クラスの定義
class User {
constructor(name, email) {
this.name = name;
this.email = email;
}
save() {
console.log('DBにユーザー情報を保存してPromiseを返す、ていで。');
View Full background image
/* 画像ファイルの指定 */
background-image: url(images/background-photo.jpg);
/* 画像を常に天地左右の中央に配置 */
background-position: center center;
/* 画像をタイル状に繰り返し表示しない */
background-repeat: no-repeat;
/* コンテンツの高さが画像の高さより大きい時、動かないように固定 */
You can’t perform that action at this time.