Skip to content

Instantly share code, notes, and snippets.

View takazawa's full-sized avatar
🧑‍💻

Yotaro Takazawa takazawa

🧑‍💻
View GitHub Profile
@takazawa
takazawa / example-CVRPTW-ortools.ipynb
Last active April 12, 2024 06:34
Example of Python implementation of Capacitated vehicle routing problem with time windows (CVRPTW) with Google OR-tools
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pathlib
from logging import getLogger, StreamHandler, Formatter, FileHandler, DEBUG
class LoggerSetting:
output_dir_path: str = None
logger_dict = {}
@classmethod
@takazawa
takazawa / latexindent_recursive.sh
Created May 30, 2023 06:05
A bash script to apply latexindent recursively to all .tex files in the current directory and its subdirectories.
#!/bin/bash
# Usage:
# 1. Save this script as 'latexindent_recursive.sh'.
# 2. Make the script executable with the command 'chmod +x latexindent_recursive.sh'.
# 3. Run the script in the directory where you want to apply latexindent to .tex files with the command './latexindent_recursive.sh'.
# Note: latexindent must be installed and in your PATH for this script to work.
# This script finds all .tex files in the current directory and its subdirectories.
find . -name '*.tex' -type f -print0 | while IFS= read -r -d '' file; do