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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<style type="text/css"> | |
html { | |
margin: 0; | |
height: 100%; |
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
""" | |
指定の文字列を含むファイルを探します。 | |
python find_files.py ./space2/cookipedia/ setButtonOpenClose .html .js | |
""" | |
import os | |
import argparse | |
def find_files(target_dir: str, keyword: str, extensions: list[str]) -> list[str]: | |
"""指定の文字列を含むファイルを探します。 |
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
def nakatoji( | |
n_papers=3, | |
right_binding=True, | |
include_hyoshi=False, | |
include_urabyoshi=False, | |
include_hyoshiura=False, | |
include_urabyoshiura=False, | |
): | |
""" | |
中綴じ冊子のページ割り当てを表示する関数。 |
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
\documentclass[unicode,11pt]{beamer} | |
\usepackage{zxjatype} | |
\usetheme{metropolis} | |
% 数式フォント用 | |
\usepackage[mathrm=sym]{unicode-math} | |
\usepackage{amsmath} | |
\usefonttheme{serif} | |
\setmainfont[BoldFont={Verdana}, ItalicFont={Verdana}]{Verdana} |
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
import queue | |
def load_question(filename='data.txt'): | |
""" | |
以下の形式のテキストファイルを想定し問題を読み込みます | |
6 10 # ノード数, エッジ数 | |
0 1 10 # 始点, 終点, 通過コスト (以下, エッジ数だけ繰り返し) | |
0 2 5 |
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
import itertools | |
import copy | |
import math # 理論パターン数計算用 | |
import random # 列のランダムシャッフル用 | |
class LogicPuzzle: | |
""" | |
ロジックパズルを解くための便利クラスです。 | |
""" |
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
import argparse | |
import glob | |
import json | |
import os | |
import datetime | |
""" | |
Slack からエクスポートした JSON データを HTML 形式に変換します。 | |
以下のように実行してください。 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder