Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created March 12, 2012 08:18
Show Gist options
  • Save jugyo/2020682 to your computer and use it in GitHub Desktop.
Save jugyo/2020682 to your computer and use it in GitHub Desktop.
Earthquake.init do
command :circle do |m|
text = m[1].bytes.map {|i|
[*case i
when 97..122 # a-z
i + 0x24d0 - 97
when 65..90
i + 0x24b6 - 65
else
i
end].pack("U")
}.join
input ":update #{text}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment