Skip to content

Instantly share code, notes, and snippets.

@wacko
Last active January 3, 2016 07:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wacko/8428304 to your computer and use it in GitHub Desktop.
Save wacko/8428304 to your computer and use it in GitHub Desktop.
Emoji animations that fit in a tweet
ruby -e 'z=0x1F551;->(c,&b){loop{c.each(&b)}}.(11.times.map{|i|[z+i].pack("U")}){|m|print "#{"\b"*3}#{m} ";sleep 0.1}'
ruby -e'a,b=0x1F493,0x1F497;loop{a,b=b,a;print(("\b"*6)+[a].pack("U")+(" "*5));sleep(0.004)}'
ruby -e'a=0x1F311;loop{8.times{|i|print(("\b"*6)+[a+i].pack("U")+(" "*5));sleep(0.1)}}'
ruby -e'a,b=0x1f6b6,0x1f3c3;loop{a,b=b,a;print(("\b"*6)+[a].pack("U")+(" "*5));sleep(0.2)}'