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
getEmoji("fedi.fun"); | |
function loadJSON(url, callback) { | |
var xhr = new XMLHttpRequest(); | |
xhr.overrideMimeType("application/json"); | |
xhr.open("GET", url, true); | |
xhr.onreadystatechange = function () { | |
if (xhr.readyState === 4 && xhr.status === 200) { | |
callback(xhr.responseText); | |
} |
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
var fs = require("fs") | |
var file = fs.readFileSync("words_alpha.txt", { encoding: "utf-8" }).split("\r\n"); | |
var out = []; | |
var allowedCharacters = ['a', 'b', 'c', 'd', 'e', 'f', 't', 's', 'g', 'i', 'o'] | |
for (let line of file) { | |
var o = ""; | |
for (var c of line) { | |
if (allowedCharacters.includes(c.toLowerCase())) { | |
if (c.match(/[tsgio]/g)) |