Skip to content

Instantly share code, notes, and snippets.

View redpeacock78's full-sized avatar
♨️
Liking Sento & Onsen

紅孔雀 redpeacock78

♨️
Liking Sento & Onsen
View GitHub Profile
FROM debian:stable-slim
ENV LANG=ja_JP.UTF-8
ENV LANGUAGE=ja_JP:ja
ENV LC_ALL=ja_JP.UTF-8
ENV PATH="/root/.texenv/bin:/root/.texenv/shims:/root/.plenv/shims:/root/.anyenv/envs/plenv/bin:/root/.anyenv/bin:${PATH}"
RUN dpkg --add-architecture amd64 && \
apt-get update && \
apt-get install -y git curl gcc make locales libfontconfig1:amd64 && \

Q: $\tan1^\circ$ は有理数か [2006 京都大学(後期)]

A: 証明は以下

概要

極限・相似・背理法の3つだけを使い、単位円と内接三角形の箱庭の中で完結する初等的な証明。


@redpeacock78
redpeacock78 / index.ts
Created August 29, 2024 14:41
麻雀の得点計算(満貫打ち切り/ロン・ツモ差額考慮)
// ResutlObjectの型定義
type basicCalcResult = { [han: string]: { [fu: string]: number } };
type calcResult = {
[han: string]: { [fu: string]: { [type: string]: string } };
};
type totalCalcResult = { [player: string]: calcResult };
// 切り上げ用関数
const roundUp = (val: number, base: number): number =>
Math.ceil(val / base) * base;
@redpeacock78
redpeacock78 / index.ts
Last active August 29, 2024 02:10
麻雀の得点計算(青天井/ロン・ツモ差額考慮)
// ResutlObjectの型定義
type basicCalcResult = { [han: string]: { [fu: string]: number } };
type calcResult = {
[han: string]: { [fu: string]: { [type: string]: string } };
};
type totalCalcResult = { [player: string]: calcResult };
// 切り上げ用関数
const roundUp = (val: number, base: number): number =>
Math.ceil(val / base) * base;
@redpeacock78
redpeacock78 / index.ts
Last active August 27, 2024 08:43
麻雀の得点計算(満貫打ち切り)
// 切り上げ用関数
const roundUp = (val: number, base: number): number =>
Math.ceil(val / base) * base;
// 翻数と符数
const hanArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
const fuArray = [20, 25, 30, 40, 50, 60, 70, 80, 90, 100, 110];
const matrix: number[][] = hanArray.flatMap((han: number): number[][] =>
fuArray.map((fu: number): number[] => [han, fu])
);
@redpeacock78
redpeacock78 / index.ts
Last active August 27, 2024 08:54
麻雀の得点計算(青天井)
// 切り上げ用関数
const roundUp = (val: number, base: number): number =>
Math.ceil(val / base) * base;
// 翻数と符数
const han = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
const hu = [20, 25, 30, 40, 50, 60, 70, 80, 90, 100, 110];
const matrix: number[][] = han.flatMap((p: number): number[][] =>
hu.map((q: number): number[] => [p, q])
);
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Ender-Wiggin2019/ServiceLogos/main/VisualStudioCode/VisualStudioCodeRound.png") !important;
opacity: .75;
}
#!/usr/bin/env bash
# shellcheck disable=SC1009,SC1072,SC1073
set -eEu
function install_bin() {
function catch() {
echo ""
echo "Interrupting the bin command installation process..."
[[ -f ./bin ]] && rm -rf ./bin

Discordサーバー権限譲渡操作

  • Flowchart
    flowchart TD
    A(開始) ==> T[権限譲渡操作]
    T ==> B[認証コードの発行]
    B --> C{メールアドレスに<br>認証コードを<br>受信している}
    C --> |No| O{迷惑メールに<br>分類されている}
    O --> |Yes| P[迷惑メール設定の変更や<br>受信フォルダの確認作業]

P --> D[権限譲渡]

THE STRONGEST PUBLIC LICENSE
Draft 1, November 2010
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
THE STRONGEST PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION