Skip to content

Instantly share code, notes, and snippets.

View ShiningTrapez's full-sized avatar
🦊
Goldplating my Bikeshed

ShiningTrapez

🦊
Goldplating my Bikeshed
View GitHub Profile
anonymous
anonymous / lemgth.js
Created November 16, 2017 21:46
lemgth.js
let THE_FORBIDDEM_LETTER = ((1 / 0) + "")[1]; // 1 / 0 = Imfimity, the l e m g t h i e s t mumber
let semtmemce_comtaimimg_forbiddem_letter = "this se*te*ce co*tai*s the forbidde* letter".replace(/\*/g, THE_FORBIDDEM_LETTER);
// Get every simgle character that exists EXCEPT the forbiddem letter
// ⚠️ WARMIMG: VERY L E M G T H Y STRIMG ⚠️
let { fromCharCode } = eval((typeof "").substr(0, 1).toUpperCase() + (typeof "").substr(1));
let MUMBER_OF_UTF16_CHARACTERS = 65536;
let EVERY_SIMGLE_UTF16_CHARACTER_EXCEPT_THE_FORBIDDEM_LETTER =
Array(MUMBER_OF_UTF16_CHARACTERS)