Skip to content

Instantly share code, notes, and snippets.

@hashedhyphen
Created March 9, 2020 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashedhyphen/af6b9ead1f00e6a207c19d05a18786b0 to your computer and use it in GitHub Desktop.
Save hashedhyphen/af6b9ead1f00e6a207c19d05a18786b0 to your computer and use it in GitHub Desktop.
// https://twitter.com/crampotter/status/1236915846250770433
const bitmap = [
[1, 0, 0, 0, 1, 1, 1],
[1, 0, 0, 0, 1, 0, 1],
[1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 1, 0, 0],
[0, 0, 1, 0, 0, 0, 0],
[0, 0, 1, 0, 0, 0, 0],
[1, 1, 1, 1, 1, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[1, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 0, 0],
[0, 0, 0, 1, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0]
]
bitmap.forEach(bitLine => {
const pienized = bitLine.map(bit => (bit ? "🥺" : " ")).join("")
console.log(pienized)
})
@hashedhyphen
Copy link
Author

w/ iTerm2 3.3.9

~@ node pien.js
🥺   🥺🥺🥺
🥺   🥺 🥺
🥺🥺🥺🥺🥺🥺🥺
🥺
🥺
🥺🥺🥺🥺

🥺🥺🥺🥺🥺
  🥺
  🥺
🥺🥺🥺🥺🥺

🥺🥺   🥺
    🥺
   🥺
🥺🥺🥺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment