Jump to content

facuman

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by facuman

  1. That's a cool piece of code. I ported it to python as a self imposed exercise (I used 3 loops for my original approach to the problem).

    import re; print " ".join([rev_word[::-1] for rev_word in "".join([chr(int(hex_char,16)) for hex_char in re.findall("..", "".join([chr(int(bin_char,2)) for bin_char in re.findall("([01]{8})","00110101001100100011011000110001001101100110001100110

    110011001100011011100110000001100100011000000110111001100110011

    011100110010001101100011000100110110001101010011011000110010001

    100100011000000110110001101010011011100110010001101100011000100

    110010001100000011011001100010001101100110010100110110001110010

    011011100110000001100100110001100110010001100000011011100111001

    001101100011010100110110001110000011011100110100001100100011000

    000110111001101000011011100110011001101110011010100110110011000

    010011001000110000001101110011010000110111001101010011011100110

    000001100100011000000110111001101000011011001100110001101100110

    001100110110001100010011001000110000001101100011011000110110011

    001100011001000110000001101110011000000110111001101010011011000

    110101001101100110001000110110001100010011011001100100001100100

    0110000001101100110010100110110011001100011001001100101")]))]).split(' ')])

    readeable, huh?

×
×
  • Create New...