Skip to content

Instantly share code, notes, and snippets.

View rh-KIMATA's full-sized avatar

RobertHisasi Kimata rh-KIMATA

View GitHub Profile
@rh-KIMATA
rh-KIMATA / ConvertTo-TheWorldNabeatsu.ps1
Created September 22, 2023 11:50
世界のナベアツ風に3の倍数と3が付く数字のとき末尾に "!" を付ける。
<#
.SYNOPSIS
世界のナベアツ風に3の倍数と3が付く数字のとき末尾に "!" を付ける。
.DESCRIPTION
入力された自然数を文字列に変換し返却する。ただし、3の倍数と3が付くとき末尾に "!" を付ける。
.PARAMETER Int
変換対象の数値
@rh-KIMATA
rh-KIMATA / JapanseEraInEdo.csv
Created May 9, 2019 03:15
Japanese Era in Edo period.
KanjiEraName RomanAlphabetEraName StartDate
元和 Genna 1615-09-05
寛永 Kan'ei 1624-04-17
正保 Shouhou 1645-01-13
慶安 Keian 1648-04-07
承応 Jouou 1652-10-20
明暦 Meireki 1655-05-18
万治 Manji 1658-08-21
寛文 Kanbun 1661-05-23
延宝 Enpou 1673-10-30
@rh-KIMATA
rh-KIMATA / RegistryEditingToJapaneseReiwaEraSupport.ps1
Last active April 1, 2019 23:52
Registry editing to Japanese ”Reiwa” era support.
# Get
Get-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Nls\Calendars\Japanese\Eras';
# Add
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Nls\Calendars\Japanese\Eras' -Name '2019 05 01' -Value '令和_令_Reiwa_R';
# Edit
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Nls\Calendars\Japanese\Eras' -Name '2019 05 01' -Value '令和_令_Reiwa_R';
# Remove
<!DOCTYPE html>
<html lang="en" style='font-family: monospace; font-size:1em;'>
<head>
<meta charset="utf-8" />
<title>Font-size test</title>
</head>
<body>
<p>HTML element have style that "<code>font-family: monospace; font-size:1em;</code>".</p>
<p style='font-family: sans-serif; font-size:1rem;'>This paragraph have style that "<code>font-family: sans-serif; font-size:1rem;</code>".</p>
<p style='font-family: monospace; font-size:1rem;'>This paragraph have style that "<code>font-family: monospace; font-size:1rem;</code>".</p>