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
| #!/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 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
| require: | |
| - rubocop-rails | |
| AllCops: | |
| Exclude: | |
| - '**/templates/**/*' | |
| - '**/vendor/**/*' | |
| - 'app/views/**/*' | |
| - 'config/**/*' | |
| - 'node_modules/**/*' |
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
| <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 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
| require "sinatra" | |
| require_relative "memo" | |
| Memo.data_dir = "memos" | |
| get "/" do | |
| @memos = Memo.all | |
| erb :index, layout: :layout | |
| end |
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
| 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 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
| カレーのレシピ | |
| 誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。 | |
| ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。 | |
| レシピの作者 | |
| 山田サチ子さん | |
| 材料 ( 8皿分 ) |
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
| const ul = document.querySelector("ul"); | |
| ul.addEventListener("click", (event) => { | |
| if (event.target.tagName === "LI") { | |
| console.log("FOO↑↑↑"); | |
| } | |
| }); |
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 elements = document.getElementsByTagName("div"); | |
| Array.from(elements, (element) => { | |
| if (element.classList.contains(".foo")) { | |
| element.addEventListener("click", () => { | |
| console.log("FOO!"); | |
| }) | |
| } | |
| }); |
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
| package main | |
| import ( | |
| "database/sql" | |
| _ "github.com/go-sql-driver/mysql" | |
| "github.com/patrickmn/go-cache" | |
| "html/template" | |
| "net/http" | |
| "strconv" | |
| "time" |
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
| package main | |
| import ( | |
| "database/sql" | |
| _ "github.com/go-sql-driver/mysql" | |
| "html/template" | |
| "net/http" | |
| ) | |
| func viewHandler(w http.ResponseWriter, r *http.Request) { |
NewerOlder