Another one of those “god I love ruby moments”:
convert base10 integer “@int” into a base36 string:
@int.to_s(36)
convert base36 string “@str” into a base10 integer:
@str.to_i(36)
I could not fucking believe it was so simple.
Another one of those “god I love ruby moments”:
convert base10 integer “@int” into a base36 string:
@int.to_s(36)
convert base36 string “@str” into a base10 integer:
@str.to_i(36)
I could not fucking believe it was so simple.