View imq.js
This file contains 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
function imul(x, y) { | |
return [x[0] * y[0] - x[1] * y[1], x[0] * y[1] + x[1] * y[0]]; | |
} | |
function cross(x, y) { | |
return [x[1] * y[2] - x[2] * y[1], x[2] * y[0] - x[0] * y[2], x[1] * y[2] - x[2] * y[1]]; | |
} | |
function vdot(x, y) { | |
return x.reduce((acc, xi, i) => acc + xi * y[i], 0); |
View ssml_ido.py
This file contains 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
# CC0 http://creativecommons.org/publicdomain/zero/1.0/ | |
phonemes = {} | |
phonemes2 = {} | |
def setphonemes(phs): | |
for ph in phs.split(): | |
p1, p2 = ph.split(",") | |
phonemes[p1] = p2 | |
if len(p1) > 1: phonemes2[p1[0]] = 1; |
View common.ts
This file contains 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
export function* splitLines(text: string) { | |
let line = "", prev = ""; | |
for (const ch of text) { | |
if (ch == '\r') { | |
yield line; | |
line = ""; | |
} else if (ch == '\n') { | |
if (prev != '\r') yield line; | |
line = ""; | |
} else { |
View split-pdf.html
This file contains 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" style="height:100%"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
.gutter { | |
background-color: #eee; | |
} |
View RijndaelPad.fsx
This file contains 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
// (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" |
View ImageToRtf.cs
This file contains 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
// 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; |
View GGellMann.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.html
This file contains 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> | |
<title>File Save Test</title> | |
</head> | |
<body> | |
<div id="result"></div> | |
<script src="test.js"></script> | |
</body> | |
</html> |
View Novial.tsv
This file contains 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
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 | 廃止 |
View fsc.fsx
This file contains 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
open System | |
open System.IO | |
let args = Environment.GetCommandLineArgs() | |
let text = File.ReadAllText(args.[1].[1..]) | |
File.WriteAllText("/home/xxx/log", text) |
NewerOlder