Skip to content

Instantly share code, notes, and snippets.

@youpy
Created August 13, 2012 01:34
Show Gist options
  • Save youpy/3336285 to your computer and use it in GitHub Desktop.
Save youpy/3336285 to your computer and use it in GitHub Desktop.
str = ARGV.shift
str.unpack("U*").map{|c| c.to_s(2)}.join('').scan(/.{1,140}/).each do |s|
s = s.split(//).map do |c|
c == '1' ? "\u200b" : "\u200c"
end
p s.join('')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment