Skip to content

Instantly share code, notes, and snippets.

@treuks
Forked from brian6932/flanimal.js
Last active September 12, 2022 16:59
Show Gist options
  • Save treuks/e277f29472df2b3c509778120b1bdd9a to your computer and use it in GitHub Desktop.
Save treuks/e277f29472df2b3c509778120b1bdd9a to your computer and use it in GitHub Desktop.
const flags = [].concat(
[
`\u{1F1E9}`,
`\u{1F1EA}`,
`\u{1F1EB}`,
`\u{1F1EC}`,
`\u{1F1EE}`,
`\u{1F1F1}`,
`\u{1F1F2}`,
`\u{1F1F4}`,
`\u{1F1F6}`,
`\u{1F1F7}`,
`\u{1F1F8}`,
`\u{1F1F9}`,
`\u{1F1FA}`,
`\u{1F1FC}`,
`\u{1F1FD}`,
`\u{1F1FF}`,
].map(i => `\u{1F1E6}` + i),
[
`\u{1F1E6}`,
`\u{1F1E7}`,
`\u{1F1E9}`,
`\u{1F1EA}`,
`\u{1F1EB}`,
`\u{1F1EC}`,
`\u{1F1ED}`,
`\u{1F1EE}`,
`\u{1F1EF}`,
`\u{1F1F1}`,
`\u{1F1F2}`,
`\u{1F1F3}`,
`\u{1F1F4}`,
`\u{1F1F6}`,
`\u{1F1F7}`,
`\u{1F1F8}`,
`\u{1F1F9}`,
`\u{1F1FB}`,
`\u{1F1FC}`,
`\u{1F1FE}`,
`\u{1F1FF}`
].map(i => `\u{1F1E7}` + i),
[
`\u{1F1E6}`,
`\u{1F1E8}`,
`\u{1F1E9}`,
`\u{1F1EB}`,
`\u{1F1EC}`,
`\u{1F1ED}`,
`\u{1F1EE}`,
`\u{1F1F0}`,
`\u{1F1F1}`,
`\u{1F1F2}`,
`\u{1F1F3}`,
`\u{1F1F4}`,
`\u{1F1F7}`,
`\u{1F1FA}`,
`\u{1F1FB}`,
`\u{1F1FC}`,
`\u{1F1FD}`,
`\u{1F1FE}`,
`\u{1F1FF}`
].map(i => `\u{1F1E8}` + i),
[
`\u{1F1EA}`,
`\u{1F1EF}`,
`\u{1F1F0}`,
`\u{1F1F2}`,
`\u{1F1F4}`,
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u{1F1EA}`,
`\u{1F1EC}`,
`\u{1F1ED}`,
`\u{1F1EE}`,
`\u{1F1EF}`,
`\u{1F1F0}`,
`\u{1F1F1}`,
`\u{1F1F2}`,
`\u{1F1F3}`,
`\u{1F1F4}`,
`\u{1F1F7}`,
`\u{1F1F8}`,
`\u{1F1F9}`,
`\u{1F1FB}`,
`\u{1F1FD}`,
`\u{1F1FE}`,
`\u{1F1FF}`
].map(i => `\u{1F1F8}` + i),
[
`\u{1F1E8}`,
`\u{1F1E9}`,
`\u{1F1EB}`,
`\u{1F1EC}`,
`\u{1F1ED}`,
`\u{1F1EF}`,
`\u{1F1F0}`,
`\u{1F1F1}`,
`\u{1F1F2}`,
`\u{1F1F3}`,
`\u{1F1F4}`,
`\u{1F1F7}`,
`\u{1F1F9}`,
`\u{1F1FB}`,
`\u{1F1FC}`,
`\u{1F1FF}`
].map(i => `\u{1F1F9}` + i),
[
`\u{1F1E6}`,
`\u{1F1EC}`,
`\u{1F1F2}`,
`\u{1F1F8}`,
`\u{1F1FE}`,
`\u{1F1FF}`
].map(i => `\u{1F1FA}` + i),
[
`\u{1F1E6}`,
`\u{1F1E8}`,
`\u{1F1EA}`,
`\u{1F1EC}`,
`\u{1F1EE}`,
`\u{1F1F3}`,
`\u{1F1FA}`
].map(i => `\u{1F1FB}` + i),
[
`\u{1F1EB}`,
`\u{1F1F8}`
].map(i => `\u{1F1FC}` + i),
[
`\u{1F1EA}`,
`\u{1F1F9}`
].map(i => `\u{1F1FE}` + i),
[
`\u{1F1E6}`,
`\u{1F1F2}`,
`\u{1F1FC}`
].map(i => `\u{1F1FF}` + i)
)
"Tre" + flags[~~(flags.length * Math.random())] + "s";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment