Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - get array of emojis #10

Open
kumavis opened this issue Oct 20, 2015 · 5 comments
Open

Feature request - get array of emojis #10

kumavis opened this issue Oct 20, 2015 · 5 comments

Comments

@kumavis
Copy link

kumavis commented Oct 20, 2015

unicode is annoying to work with, you cant do split('') on the emoji string. would be nice to get a list of the emojis. im open to alternative solutions.

@kumavis
Copy link
Author

kumavis commented Oct 20, 2015

e.g. in OSX terminal, unicode chars are rendered double width but only take up a single width

var output = BaseEmoji.toUnicode(buf)
output = chunk(output, 2).join(' ')

function chunk(array, chunkSize){
  var result = []
  for (var index=0, len=array.length; index<len; index+=chunkSize) {
    result.push(array.slice(index,index+chunkSize))
  }
  return result
}

before:
image
after:
image

would be nice to get the chunking as a feature

@kumavis
Copy link
Author

kumavis commented Oct 20, 2015

looking for patterns in ethereum contract byte code:
image

@kumavis
Copy link
Author

kumavis commented Oct 20, 2015

starts with a resounding pu pu pu~
and knocks back a few martinits here and there

@jbenet
Copy link

jbenet commented Oct 20, 2015

I still think we should change 0x00 to be 💩, so bitcoin blocks can start with 💩 💩 💩 💩 💩 💩 💩 ...

@pfrazee
Copy link
Owner

pfrazee commented Oct 21, 2015

Hah nice

Yeah @kumavis I'm open to this, can you submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants