encdec – BaseXX Encoding and Decoding in JavaScript

Recently, while hacking around with some Python code I came up with a Gist for base58 encoding and decoding. Now, just for fun, I thought
it would be a good idea / exercise to port this over to JavaScript. This gave rise to encdec – a small base encoding / decoding library.

By default if uses base58 encoding, but it does let you pass it
your own base alphabet allowing you to do base16, base32 or base-whatever-you-like encoding.

Please have a play with it and let me know what you think :)

Posted in javascript at June 3rd, 2011. 2 Comments.

Moving Greasemonkey Scripts To GitHub

Recently I made a few amends to some Greasemonkey scripts I wrote a while back and, since I’ve been using git quite a bit recently, it made sense to me to move my Greasemonkey scripts onto GitHub.

So I did :) And here they are:

Posted in javascript, web at August 18th, 2010. No Comments.

A Simple jQuery Print Page Plugin

The other day I was after a really simple way to add a print page link to a page to, well, er, print it.  So I came up with my jQuery Print Page plugin and stuck it on GitHub with a demo page: http://github.com/ianoxley/jqueryprintpage

This really is nothing fancy: it’s just a convenient way of adding an <a> tag plus an event-handler to a page to print it. Using it is as simple as, well, using File -> Print. But you can’t style the File menu with CSS so this is much more fun :-)

Posted in javascript at February 26th, 2010. No Comments.