2 Apr 2011, 4:10pm
/dev/random:
by

leave a comment

str_2_hex.rb

I was playing around with an interface experiment and wanted to convert arbitrary strings into hex codes for displaying colours in a webpage. I just ported the JS code from this Stack Overflow solution to Ruby, now hosted on Github: str_2_hex.rb. Might be useful to someone else.