Skip to content

Instantly share code, notes, and snippets.

Avatar

RobertHisasi Kimata rh-KIMATA

View GitHub Profile
@rh-KIMATA
rh-KIMATA / JapanseEraInEdo.csv
Created May 9, 2019
Japanese Era in Edo period.
View JapanseEraInEdo.csv
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 Apr 1, 2019
Registry editing to Japanese ”Reiwa” era support.
View RegistryEditingToJapaneseReiwaEraSupport.ps1
# 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
View Font size test: monospace
<!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>