Skip to content

Instantly share code, notes, and snippets.

@7shi
7shi / split-pdf.html
Created Aug 24, 2022
[HTML]Splitter & PDF
View split-pdf.html
<!DOCTYPE html>
<html lang="ja" style="height:100%">
<head>
<meta charset="utf-8">
<style>
.gutter {
background-color: #eee;
}
@7shi
7shi / RijndaelPad.fsx
Last active Jul 16, 2022
Crypto Notepad with Rijndael
View RijndaelPad.fsx
// (0) PUBLIC DOMAIN
// To the extent possible under law, the person who associated CC0 with this work
// has waived all copyright and related or neighboring rights to this work.
#r "System"
#if NETF
#r "System.Drawing"
#r "System.Windows.Forms"
#else
//#r "nuget: System.Drawing.Common, 5.0.2"
@7shi
7shi / ImageToRtf.cs
Last active Jan 13, 2022
Convert image to RTF
View ImageToRtf.cs
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/4813e7fd-52d0-4f42-965f-228c8b7488d2
// https://www.codeproject.com/Questions/540673/InsertplusimageplusinplusRichTextBoxpluswithoutplu
// https://stackoverflow.com/questions/1490734/programmatically-adding-images-to-rtf-document
// https://garakutatech.blogspot.com/2021/01/cwpfwinformsrichtextboxjpeg.html
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Text;
@7shi
7shi / GGellMann.ipynb
Created Sep 5, 2020
[Jupyter] Generalized Gell-Mann matrices
View GGellMann.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / index.html
Created Jul 8, 2020
[Deno] Simple HTTP Server
View index.html
<!DOCTYPE html>
<html>
<head>
<title>File Save Test</title>
</head>
<body>
<div id="result"></div>
<script src="test.js"></script>
</body>
</html>
@7shi
7shi / Novial.tsv
Created Jun 27, 2020
[TSV] Novial words in OmegaWiki
View Novial.tsv
novial English Deutsch français 日本語
a at an proche
abatial abbatial abteilich abbatial
abdikatione abdication Verzicht abdication 退位
abdomene belly Bauch ventre
abele bee Biene abeille ハチ
abiete fir Tanne sapin 樅の木
abjuratione abjuration Abschwörung abjuration
abolio abolishment Abschaffung abolition 廃止
abolitione abolishment Abschaffung abolition 廃止
@7shi
7shi / fsc.fsx
Last active Jun 9, 2020
[F#] fsc dummy
View fsc.fsx
open System
open System.IO
let args = Environment.GetCommandLineArgs()
let text = File.ReadAllText(args.[1].[1..])
File.WriteAllText("/home/xxx/log", text)
@7shi
7shi / README.md
Last active Jun 5, 2020
[F#] mysqldump (SQL) to TSV converter
View README.md

This file has been moved.

@7shi
7shi / README.md
Last active Jun 5, 2020
[py] mysqldump (SQL) to TSV converter
View README.md

This file has been moved.

@7shi
7shi / wintts.py
Created May 25, 2020
[py] SAPI client
View wintts.py
import getopt, sys, win32com.client
options = "lo:v:r:i:ps:"
def usage():
print("[usage] %s -l | [-o] [-v] [-r] (-i | -p | -s | text)" % sys.argv[0])
print(" -l language: case insensitive, begins-with match")
print(" -o output.wav")
print(" -v voice: case insensitive, 'Microsoft' can be dropped.")
print(" -r rate: -10 (slow) ... 10 (fast)")
print(" -i input.txt")