Utilities

Poker Formatter

Format poker cards for forum games and whatever without reaching for Unicode input methods.

The regex employed is essentially /\b([A2-9TJQK]|10)([CDHS])\b/g. You have to type in uppercase (otherwise even “as” would be filtered).

Factorize

A basic JavaScript factorizer. Warning: it uses extremely dumb trial division, so numbers with large prime factors will quite likely hang your browser, and big numbers will overflow or lose precision. If you want to factor the big fish, use Alpertron’s ECM applet or something. factor! append? fancy?