flowchart TD
subgraph 無印
monkey("大猿"):::monkey
end
subgraph Z
normal("サイヤ人"):::normal
super("スーパーサイヤ人"):::super
super2("スーパーサイヤ人を超えたスーパーサイヤ人"):::super
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
# frozen_string_literal: true | |
# 各行、各列の合計値の正解を計算する関数 | |
def calc_general_sum(magic_table) | |
general_sum = 0 | |
magic_table.each do |line| | |
line.include?(0) && next | |
general_sum = line.inject(:+) | |
break | |
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
``` | |
ログインが必要なQiitaページのスクレイピングをする場合のサンプル。 | |
Qiitaの仕様の問題なので、特別な技術は使っていない。 | |
そして仕様なので、そのうちまた変わると思われる。 | |
``` | |
# ログイン情報 | |
payload = { | |
'utf8': '✓', | |
'identity': QIITA_ID, |