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
- 北海道 | |
- 青森県 | |
- 岩手県 | |
- 宮城県 | |
- 秋田県 | |
- 山形県 | |
- 福島県 | |
- 茨城県 | |
- 栃木県 | |
- 群馬県 |
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
require: | |
- rubocop-rails | |
AllCops: | |
Exclude: | |
- '**/templates/**/*' | |
- '**/vendor/**/*' | |
- 'app/views/**/*' | |
- 'config/**/*' | |
- 'node_modules/**/*' |
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
【あ】:あまり調子に乗ってると裏世界でひっそり幕を閉じる | |
% | |
【い】:今のがリアルでなくて良かったな、リアルだったらお前はもう死んでるぞ | |
% | |
【う】:うるさい、気が散る。一瞬の油断が命取り | |
% | |
【え】:FFではナイトだがリアルではモンクタイプだからな | |
% | |
【お】:おれの怒りが有頂天になった | |
% |
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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'optparse' | |
ARGV.each do |file_from_arg| | |
file = File.read(file_from_arg) | |
print file.count("\n").to_s.rjust(8) | |
word = File.open(file_from_arg).read.split(/\s+/).count | |
print word.to_s.rjust(8) |
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
require "sinatra" | |
require_relative "memo" | |
Memo.data_dir = "memos" | |
get "/" do | |
@memos = Memo.all | |
erb :index, layout: :layout | |
end |
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
<template lang="pug"> | |
.review-comments | |
.narrow-container | |
h2.review-comments__title コメント | |
transition-group(name="fade" tag="div" class="review-comments__items") | |
comment(v-for="(comment, index) in comments" | |
v-bind:key="comment.id" | |
v-bind:comment="comment" | |
v-bind:userId="reviewUserId" | |
v-on:delete="deleteComment") |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Mole : MonoBehaviour { | |
public GameObject prefab; | |
GameObject instance; | |
void Start () { | |
this.instance = Instantiate (prefab) as GameObject; |
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
カレーのレシピ | |
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。 | |
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。 | |
レシピの作者 | |
山田サチ子さん | |
材料 ( 8皿分 ) |
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 ul = document.querySelector("ul"); | |
ul.addEventListener("click", (event) => { | |
if (event.target.tagName === "LI") { | |
console.log("FOO↑↑↑"); | |
} | |
}); |
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
let elements = document.getElementsByTagName("div"); | |
Array.from(elements, (element) => { | |
if (element.classList.contains(".foo")) { | |
element.addEventListener("click", () => { | |
console.log("FOO!"); | |
}) | |
} | |
}); |
NewerOlder