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 base64 | |
| from openai import OpenAI | |
| import typer | |
| # 画像生成用のプロンプトテンプレート --- (*1) | |
| PROMPT_TEMPLATE = """\ | |
| 指示: {prompt} | |
| 画風: {style} | |
| """ |
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
| 都道府県 | 店舗数 | |
|---|---|---|
| 北海道 | 8321 | |
| 青森県 | 1632 | |
| 岩手県 | 2746 | |
| 宮城県 | 4337 | |
| 秋田県 | 1830 | |
| 山形県 | 2143 | |
| 福島県 | 5106 | |
| 茨城県 | 6371 | |
| 栃木県 | 4626 |
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
| 都道府県 | 人口_千人 | |
|---|---|---|
| 北海道 | 5043 | |
| 青森県 | 1165 | |
| 岩手県 | 1145 | |
| 宮城県 | 2248 | |
| 秋田県 | 897 | |
| 山形県 | 1011 | |
| 福島県 | 1743 | |
| 茨城県 | 2806 | |
| 栃木県 | 1885 |
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
| 都道府県 | 計 | |
|---|---|---|
| 北海道 | 11559 | |
| 青森県 | 3015 | |
| 岩手県 | 3807 | |
| 宮城県 | 8319 | |
| 秋田県 | 3593 | |
| 山形県 | 6193 | |
| 福島県 | 11415 | |
| 茨城県 | 14477 | |
| 栃木県 | 10380 |
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 sounddevice as sd | |
| import numpy as np | |
| import librosa | |
| import blessed | |
| import sys | |
| import queue | |
| import time | |
| from scipy.signal import butter, sosfilt_zi, sosfilt | |
| # --- 定数 --- |
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
| use std::env; | |
| use std::fs; | |
| use std::io::Read; | |
| use std::path::Path; | |
| use anyhow::{Context, Result}; | |
| use xlsxwriter::Workbook; | |
| fn main() -> Result<()> { | |
| let args: Vec<String> = env::args().collect(); | |
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
| """モザイク専用ツール""" | |
| from PIL import Image | |
| import TkEasyGUI as eg | |
| # 定数の宣言 | |
| CANVAS_SIZE = (800, 600) # キャンバスのサイズ | |
| MOSAIC_SIZE = 5 # モザイクのサイズ | |
| # グローバル変数 | |
| is_mouse_down = False | |
| start_xy = (0, 0) |
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
| 01 北海道 497 2,868 1,677 945 | |
| 02 青森県 114 634 416 227 | |
| 03 岩手県 115 624 405 225 | |
| 04 宮城県 243 1,340 665 357 | |
| 05 秋田県 79 463 354 198 | |
| 06 山形県 105 546 360 199 | |
| 07 福島県 184 972 587 311 | |
| 08 茨城県 303 1,637 866 477 | |
| 09 栃木県 203 1,106 575 309 | |
| 10 群馬県 203 1,098 588 333 |
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
| use lopdf::{dictionary, Document, Object, ObjectId}; | |
| use std::collections::BTreeMap; | |
| use std::env; | |
| fn main() { | |
| let args: Vec<String> = env::args().collect(); | |
| if args.len() < 2 { | |
| println!("使い方: pdf_splitter <file.pdf>"); | |
| return; | |
| } |
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
| use anyhow::{Context, Result}; | |
| use candle_core::{D, DType, Device, Tensor}; | |
| use candle_nn::{linear, loss, Module, VarBuilder, VarMap}; | |
| use candle_optimisers::adam::{Adam, ParamsAdam}; | |
| use candle_nn::optim::Optimizer; | |
| use image::{imageops::FilterType}; | |
| use rand::{seq::SliceRandom, rng}; | |
| use std::fs; | |
| use std::path::Path; | |
| use walkdir::WalkDir; |
NewerOlder