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; |
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 lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>風鈴</title> | |
<style> | |
:root { | |
--bg1: #e6f2ff; | |
--bg2: #fdfbff; |
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 lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> | |
<title>Full Screen Fireworks</title> | |
<style> | |
html, body { height: 100%; margin: 0; } | |
body { background: radial-gradient(1200px 800px at 50% 80%, #06102a 0%, #020712 60%, #000 100%); | |
overflow: hidden; } |
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 lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>落ちものゲーム</title> | |
<style> | |
canvas { background: #eee; display: block; margin: 20px auto; } | |
</style> | |
</head> | |
<body> |
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" /> | |
<title>ハノイの塔(PyScript版)</title> | |
<link rel="stylesheet" href="https://pyscript.net/releases/2025.7.3/core.css"> | |
<script type="module" src="https://pyscript.net/releases/2025.7.3/core.js"></script> | |
<style> | |
canvas { border: 1px solid #000; background: #f8f8f8; } | |
#controls { margin: 1em; } | |
#message { color: red; margin-top: 1em; } | |
</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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>アイビーリーメソッド</title> | |
<link rel="stylesheet" href="tasklist.css"> | |
</head> | |
<body> | |
<h1>アイビーリーメソッド</h1> |
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::fs::File; | |
use std::io::{BufReader, Read, Write}; | |
use std::path::PathBuf; | |
use crc32_light::crc32; | |
// PNGシグネチャ --- (*1) | |
static PNG_SIG: [u8; 8] = [137, 80, 78, 71, 13, 10, 26, 10]; | |
// PNGチャンクを表す構造体を定義 --- (*2) | |
#[derive(Debug, Clone)] |
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 | |
import time | |
import threading | |
import warnings | |
import sounddevice as sd | |
import torch | |
import torchaudio | |
import numpy as np | |
from transformers import pipeline |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 7 in line 1.
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
ダウンロードした時刻:2025/06/30 17:47:02 | |
,横浜,横浜,横浜,横浜,横浜,横浜 | |
年月日,最高気温(℃),最高気温(℃),最高気温(℃),最低気温(℃),最低気温(℃),最低気温(℃) | |
,,,,,, | |
,,品質情報,均質番号,,品質情報,均質番号 | |
2014/1/1,14.7,8,1,3.2,8,1 | |
2014/1/2,12.6,8,1,5.0,8,1 | |
2014/1/3,9.5,8,1,4.1,8,1 | |
2014/1/4,11.8,8,1,3.3,8,1 |
NewerOlder