Skip to content

Instantly share code, notes, and snippets.

@reinh
Created November 5, 2009 22:01
Show Gist options
  • Save reinh/227453 to your computer and use it in GitHub Desktop.
Save reinh/227453 to your computer and use it in GitHub Desktop.
uudec(Text) -> << <<(X-32):6>> || <<X:8>> <= Text >>.
ydec (<<$=, X, Rest/binary>>) -> <<(X-106 rem 256):8, (ydec(Rest))/binary>>;
ydec (<<X, Rest/binary>>) -> <<(X-42 rem 256):8, (ydec(Rest))/binary>>;
ydec (<<>>) -> <<>>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment