View Num2DecStr.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
/** | |
* 数値を整数・少数表記に変換する。 | |
* 内部的には、指数表記の文字列をパースし、小数表記に変換している。 | |
* | |
* @param {number|string} number 変換したい数値、または数値形式の文字列。 | |
* 数値型であればNaNやInfinityも指定できるが、そのまま文字列化して返される。 | |
* @return {string} 小数表記の数値文字列 | |
* @throws 適切な形式の数値、または文字列が与えられなかった場合に発生する。 | |
* | |
* Note: この関数は、JavaScriptで正確な数値演算を行うために使う**べきではない**。 |
View init.ps1
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
#Requires -Version 5.0 | |
#Requires -PSEdition Desktop | |
## 必要な場合にのみレジストリの値を更新する ## | |
function Set-ItemPropertyWhenNeeded() { | |
param ( | |
[Parameter(Mandatory)] | |
[string]$LiteralPath, | |
[Parameter(Mandatory)] |
View README.md
Show centimetre product sizes on Bad Dragon
Bad Dragonのサイズ表にセンチメートル単位を併記するTampermonkeyスクリプト。 ここをクリックしてインストールします。
View README.md
Do not jump to Twitter home!
アカウントを切り替えた直後に、Twitterのホーム画面へ勝手に移動するのを防ぐTampermonkeyスクリプト。 ここをクリックしてインストールします。
機能
- アカウントを切り替えた直後に、自動的にホーム画面へ移動しそうな場合は、強制的にブラウザバックします。
View README.md
関数の多重定義とカリー化を両立する言語の案
本当にこれが実現できるかどうかは極めて怪しい。
多重定義とカリー化の両立
// range関数を多重定義で定義
let range =
(stop: number) -> range(0, stop)
NewerOlder